Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:20:35 -06:00
Alexandre Vassalotti
9730e33535
Issue #3693 : Fix array obscure error message when given a str.
2013-11-29 20:47:15 -08:00
Serhiy Storchaka
4725dc3ff4
Issue #19604 : Use specific asserts in array tests.
2013-11-17 00:45:39 +02:00
Serhiy Storchaka
91b3e77a6a
Issue #19604 : Use specific asserts in array tests.
2013-11-17 00:45:17 +02:00
Serhiy Storchaka
43767638a9
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:38 +02:00
Serhiy Storchaka
7908068627
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:18 +02:00
Victor Stinner
763edc1c6a
(Merge 3.3) Issue #17223 : the test is specific to 32-bit wchar_t type
...
Skip the test on Windows.
2013-03-08 02:33:44 +01:00
Victor Stinner
29c0034ff9
Issue #17223 : the test is specific to 32-bit wchar_t type
...
Skip the test on Windows.
2013-03-08 02:33:06 +01:00
Victor Stinner
742c5961dd
(Merge 3.3) Issue #17223 : Fix test_array on Windows (16-bit wchar_t/Py_UNICODE)
2013-02-26 22:52:25 +01:00
Victor Stinner
c472c5d7bd
Issue #17223 : Fix test_array on Windows (16-bit wchar_t/Py_UNICODE)
2013-02-26 22:52:11 +01:00
Victor Stinner
25c3053a4f
(Merge 3.3) Issue #17223 : array module: Fix a crasher when converting an array
...
containing invalid characters (outside range [U+0000; U+10ffff]) to Unicode:
repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.
2013-02-26 00:27:56 +01:00
Victor Stinner
29ec595c6a
Issue #17223 : array module: Fix a crasher when converting an array containing
...
invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array),
str(array) and array.tounicode(). Patch written by Manuel Jacob.
2013-02-26 00:27:38 +01:00
Ezio Melotti
e1b0d3e123
#16888 : merge with 3.3.
2013-01-10 06:06:31 +02:00
Ezio Melotti
1d3e96dbe2
#16888 : test_array now works with unittest test discovery. Patch by Zachary Ware.
2013-01-10 06:04:50 +02:00
Andrew Svetlov
f7a17b48d7
Replace IOError with OSError ( #16715 )
2012-12-25 16:47:37 +02:00
Meador Inge
80dd1af4e0
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 23:21:39 -05:00
Meador Inge
03b4d5072a
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:35:45 -05:00
Victor Stinner
9d512ab97f
Issue #13072 : Fix test_array for installation without the ctypes module
2012-08-09 00:43:56 +02:00
Victor Stinner
bded28c081
Issue #13072 : Ooops, now fix test_array for Linux with 32-bit wchar_t...
2012-08-08 20:19:37 +02:00
Victor Stinner
8d4734f6b2
Issue #13072 : Fix test_array for Windows with 16-bit wchar_t
2012-08-08 20:09:21 +02:00
Kristján Valur Jónsson
31668b8f7a
Issue #14288 : Serialization support for builtin iterators.
2012-04-03 10:49:41 +00:00
Ezio Melotti
90bf5f1171
Remove mention of narrow/wide builds and update array doc, add a test.
2011-10-25 10:05:34 +03:00
Victor Stinner
8dba4e004f
array module uses the new Unicode API
...
* Use Py_UCS4* buffer instead of Py_UNICODE*
* Use "I" or "L" format, instead of "u" format
2011-09-30 00:51:10 +02:00
Meador Inge
1c9f0c93ad
Issue #1172711 : Add 'long long' support to the array module.
...
Initial patch by Oren Tirosh and Hirokazu Yamamoto.
2011-09-20 19:55:51 -05:00
Alexander Belopolsky
ef4a03fffe
Issue #5109 : array.array constructor will now use fast code when
...
initial data is provided in an array object with correct type.
2011-01-11 21:44:00 +00:00
Victor Stinner
7a6a0093f3
test_array: fix the DeprecationWarning('object.__init__() takes no parameters')
2011-01-04 00:04:44 +00:00
Georg Brandl
cf03ac0c64
#10668 : fix wrong call of __init__.
2010-12-10 10:01:44 +00:00
Georg Brandl
c29cc6a8f2
#1569291 : speed up array.repeat() by making only O(log n) memcpy() calls; the code follows unicode_repeat.
2010-12-04 11:02:04 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Antoine Pitrou
1ce3eb5c5b
Issue #8990 : array.fromstring() and array.tostring() get renamed to
...
frombytes() and tobytes(), respectively, to avoid confusion. Furthermore,
array.frombytes(), array.extend() as well as the array.array()
constructor now accept bytearray objects. Patch by Thomas Jollans.
2010-09-01 20:29:34 +00:00
Antoine Pitrou
8cb6dbf1b9
Issue #5395 : check that array.fromfile() re-raises an IOError instead of replacing it
...
with EOFError.
(this is only an added test, but 2.x will get a fix too)
2010-07-21 16:41:31 +00:00
Benjamin Peterson
90f5ba538b
convert shebang lines: python -> python3
2010-03-11 22:53:45 +00:00
Mark Dickinson
bc09964be1
Merged revisions 77821 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77821 | mark.dickinson | 2010-01-29 17:11:39 +0000 (Fri, 29 Jan 2010) | 3 lines
Issue #7788 : Fix a crash produced by deleting a list slice with huge
step value. Patch by Marcin Bachry.
........
2010-01-29 17:27:24 +00:00
Ezio Melotti
e96159335f
Merged revisions 77727 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line
use assert[Not]IsInstance where appropriate
........
2010-01-24 19:26:24 +00:00
Frank Wierzbicki
176834327f
Merged revisions 74477 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74477 | frank.wierzbicki | 2009-08-16 16:22:51 -0400 (Sun, 16 Aug 2009) | 2 lines
Add test of file.write(array) extracted from Jython.
........
2009-08-16 20:30:12 +00:00
Alexandre Vassalotti
0027d4b4fe
Don't check 64-bit test cases on 32-bit machine.
2009-07-15 20:53:55 +00:00
Alexandre Vassalotti
ad077154d0
Issue #2389 : Implement a portable mechanism for pickling array objects.
...
Reviewed by: Martin v. Löwis
2009-07-15 17:49:23 +00:00
Alexandre Vassalotti
47137250ff
Add the fix for issue 4509 to the mapping methods.
2009-07-05 19:57:00 +00:00
Alexandre Vassalotti
e503cf9b0e
Fix array.extend and array.__iadd__ to handle the case where an array
...
is extended with itself.
This bug is specific the py3k version of arraymodule.c
2009-07-05 06:25:14 +00:00
Alexandre Vassalotti
b78637a5bc
Add more test cases to BaseTest.test_memoryview_no_resize.
2009-07-05 05:47:28 +00:00
Alexandre Vassalotti
7e4f3215db
Issue 4509: Do not modify an array if we know the change would result
...
in a failure due to exported buffers.
2009-07-05 05:38:18 +00:00
Benjamin Peterson
c9c0f201fe
convert old fail* assertions to assert*
2009-06-30 23:06:06 +00:00
Hirokazu Yamamoto
54d0df69c0
Issue #5334 : array.fromfile() failed to insert values when EOFError was raised.
...
Reviewed by Benjamin Peterson.
2009-03-06 03:04:07 +00:00
Raymond Hettinger
3471b1c865
Resurrect two buffer tests, converting irepeat() to imul(). Undoes part of r68962.
2009-01-27 11:06:40 +00:00
Raymond Hettinger
89e12963ad
As discussed on python-dev, remove several operator functions
...
isSequenceType(), isMappingType(), and isNumberType() in favor
of using abstract base classes. Also, remove repeat() and irepeat()
in favor of mul() and imul().
After the buildbots have had a go at this. Will backport to Py3.0.1.
For Py2.7, will just mark as deprecated.
2009-01-26 02:09:03 +00:00
Hirokazu Yamamoto
801f9d3888
Issue #4740 : Use HIGHEST_PROTOCOL in pickle test. This enables test for protocol 3
...
(== HIGHEST_PROTOCOL in 3.x)
2008-12-27 04:21:44 +00:00
Antoine Pitrou
3ad3a0d366
Issue #4583 : crash after resizing an array.array which has buffer exports.
2008-12-18 17:08:32 +00:00
Benjamin Peterson
bcd8ac3964
Merged revisions 66703,66708 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66703 | gregory.p.smith | 2008-09-30 15:41:13 -0500 (Tue, 30 Sep 2008) | 6 lines
Works around issue3863: freebsd4/5/6 and os2emx are known to have OS bugs when
calling fork() from a child thread. This disables that unit test (with a note
printed to stderr) on those platforms.
A caveat about buggy platforms is added to the os.fork documentation.
........
r66708 | andrew.macintyre | 2008-09-30 22:25:25 -0500 (Tue, 30 Sep 2008) | 9 lines
fix for issue 3862: test_array fails FreeBSD 7 amd64
FreeBSD 7's underlying malloc() is behaves differently to earlier versions
and seriously overcommits available memory on amd64. This may affect
other 64bit platforms in some circumstances, so the scale of the
problematic test is wound back.
Patch by Mark Dickinson, reviewed by Martin von Loewis.
........
2008-10-10 22:20:52 +00:00
Amaury Forgeot d'Arc
9c74b14fe9
Merged revisions 64114 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r64114 | gregory.p.smith | 2008-06-11 09:41:16 +0200 (mer., 11 juin 2008) | 6 lines
Merge in release25-maint r60793:
Added checks for integer overflows, contributed by Google. Some are
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
........
2008-06-18 00:47:36 +00:00