summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
Commit message (Collapse)AuthorAgeFilesLines
* (Merge 3.3) Issue #17223: the test is specific to 32-bit wchar_t typeVictor Stinner2013-03-081-11/+3
|\ | | | | | | Skip the test on Windows.
| * Issue #17223: the test is specific to 32-bit wchar_t typeVictor Stinner2013-03-081-11/+3
| | | | | | | | Skip the test on Windows.
* | (Merge 3.3) Issue #17223: Fix test_array on Windows (16-bit wchar_t/Py_UNICODE)Victor Stinner2013-02-261-11/+18
|\ \ | |/
| * Issue #17223: Fix test_array on Windows (16-bit wchar_t/Py_UNICODE)Victor Stinner2013-02-261-11/+18
| |
* | (Merge 3.3) Issue #17223: array module: Fix a crasher when converting an arrayVictor Stinner2013-02-251-0/+6
|\ \ | |/ | | | | | | containing invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.
| * Issue #17223: array module: Fix a crasher when converting an array containingVictor Stinner2013-02-251-0/+6
| | | | | | | | | | invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.
* | #16888: merge with 3.3.Ezio Melotti2013-01-101-49/+15
|\ \ | |/
| * #16888: test_array now works with unittest test discovery. Patch by Zachary ↵Ezio Melotti2013-01-101-49/+15
| | | | | | | | Ware.
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-2/+2
|/
* Issue #15424: Add a __sizeof__ implementation for array objects.Meador Inge2012-08-111-0/+13
|\ | | | | | | Patch by Ludwig Hähne.
| * Issue #15424: Add a __sizeof__ implementation for array objects.Meador Inge2012-08-111-0/+13
| | | | | | | | Patch by Ludwig Hähne.
* | Issue #13072: Fix test_array for installation without the ctypes moduleVictor Stinner2012-08-081-2/+11
| |
* | Issue #13072: Ooops, now fix test_array for Linux with 32-bit wchar_t...Victor Stinner2012-08-081-1/+2
| |
* | Issue #13072: Fix test_array for Windows with 16-bit wchar_tVictor Stinner2012-08-081-2/+2
| |
* | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-031-0/+14
| |
* | Remove mention of narrow/wide builds and update array doc, add a test.Ezio Melotti2011-10-251-1/+2
| |
* | array module uses the new Unicode APIVictor Stinner2011-09-291-2/+6
| | | | | | | | | | * Use Py_UCS4* buffer instead of Py_UNICODE* * Use "I" or "L" format, instead of "u" format
* | Issue #1172711: Add 'long long' support to the array module.Meador Inge2011-09-211-0/+21
|/ | | | Initial patch by Oren Tirosh and Hirokazu Yamamoto.
* Issue #5109: array.array constructor will now use fast code whenAlexander Belopolsky2011-01-111-0/+10
| | | | initial data is provided in an array object with correct type.
* test_array: fix the DeprecationWarning('object.__init__() takes no parameters')Victor Stinner2011-01-041-1/+1
|
* #10668: fix wrong call of __init__.Georg Brandl2010-12-101-1/+1
|
* #1569291: speed up array.repeat() by making only O(log n) memcpy() calls; ↵Georg Brandl2010-12-041-0/+6
| | | | the code follows unicode_repeat.
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-4/+4
|
* Issue #8990: array.fromstring() and array.tostring() get renamed toAntoine Pitrou2010-09-011-10/+48
| | | | | | 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.
* Issue #5395: check that array.fromfile() re-raises an IOError instead of ↵Antoine Pitrou2010-07-211-0/+11
| | | | | | | replacing it with EOFError. (this is only an added test, but 2.x will get a fix too)
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* Merged revisions 77821 via svnmerge fromMark Dickinson2010-01-291-0/+3
| | | | | | | | | | | 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. ........
* Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-3/+3
| | | | | | | | | | 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 ........
* Merged revisions 74477 via svnmerge fromFrank Wierzbicki2009-08-161-0/+19
| | | | | | | | | | 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. ........
* Don't check 64-bit test cases on 32-bit machine.Alexandre Vassalotti2009-07-151-1/+15
|
* Issue #2389: Implement a portable mechanism for pickling array objects.Alexandre Vassalotti2009-07-151-10/+140
| | | | Reviewed by: Martin v. Löwis
* Add the fix for issue 4509 to the mapping methods.Alexandre Vassalotti2009-07-051-26/+21
|
* Fix array.extend and array.__iadd__ to handle the case where an arrayAlexandre Vassalotti2009-07-051-0/+13
| | | | | | is extended with itself. This bug is specific the py3k version of arraymodule.c
* Add more test cases to BaseTest.test_memoryview_no_resize.Alexandre Vassalotti2009-07-051-0/+6
|
* Issue 4509: Do not modify an array if we know the change would resultAlexandre Vassalotti2009-07-051-0/+16
| | | | in a failure due to exported buffers.
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-37/+37
|
* Issue #5334: array.fromfile() failed to insert values when EOFError was raised.Hirokazu Yamamoto2009-03-061-2/+1
| | | | Reviewed by Benjamin Peterson.
* Resurrect two buffer tests, converting irepeat() to imul(). Undoes part of ↵Raymond Hettinger2009-01-271-0/+2
| | | | r68962.
* As discussed on python-dev, remove several operator functionsRaymond Hettinger2009-01-261-2/+0
| | | | | | | | | 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.
* Issue #4740: Use HIGHEST_PROTOCOL in pickle test. This enables test for ↵Hirokazu Yamamoto2008-12-271-3/+3
| | | | | | protocol 3 (== HIGHEST_PROTOCOL in 3.x)
* Issue #4583: crash after resizing an array.array which has buffer exports.Antoine Pitrou2008-12-181-1/+17
|
* Merged revisions 66703,66708 via svnmerge fromBenjamin Peterson2008-10-101-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | 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. ........
* Merged revisions 64114 via svnmerge fromAmaury Forgeot d'Arc2008-06-181-0/+17
| | | | | | | | | | | | | | 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. ........
* #2630: Implement PEP 3138.Georg Brandl2008-06-111-1/+1
| | | | | | | The repr() of a string now contains printable Unicode characters unescaped. The new ascii() builtin can be used to get a repr() with only ASCII characters in it. PEP and patch were written by Atsuo Ishimoto.
* Revert r63934 -- it was mixing two patches.Georg Brandl2008-06-041-1/+1
|
* Remove meaning of -ttt, but still accept -t option on cmdline for compatibility.Georg Brandl2008-06-041-1/+1
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-7/+7
|
* Merged revisions ↵Christian Heimes2008-04-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 62260-62261,62266,62271,62277-62279,62289-62290,62293-62298,62302-62306,62308,62311,62313-62315,62319-62321 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62260 | gregory.p.smith | 2008-04-10 01:11:56 +0200 (Thu, 10 Apr 2008) | 2 lines better diagnostics ........ r62261 | gregory.p.smith | 2008-04-10 01:16:37 +0200 (Thu, 10 Apr 2008) | 3 lines Raise SystemError when size < 0 is passed into PyString_FromStringAndSize, PyBytes_FromStringAndSize or PyUnicode_FromStringAndSize. [issue2587] ........ r62266 | neal.norwitz | 2008-04-10 07:46:39 +0200 (Thu, 10 Apr 2008) | 5 lines Remove the test file before writing it in case there is no write permission. This might help fix some of the failures on Windows box(es). It doesn't hurt either way and ensure the tests are a little more self contained (ie have less assumptions). ........ r62271 | gregory.p.smith | 2008-04-10 21:50:36 +0200 (Thu, 10 Apr 2008) | 2 lines get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code. ........ r62277 | andrew.kuchling | 2008-04-10 23:27:10 +0200 (Thu, 10 Apr 2008) | 1 line Remove forward-looking statement ........ r62278 | andrew.kuchling | 2008-04-10 23:28:51 +0200 (Thu, 10 Apr 2008) | 1 line Add punctuation ........ r62279 | andrew.kuchling | 2008-04-10 23:29:01 +0200 (Thu, 10 Apr 2008) | 1 line Use issue directive ........ r62289 | thomas.heller | 2008-04-11 15:05:38 +0200 (Fri, 11 Apr 2008) | 3 lines Move backwards compatibility macro to the correct place; PyIndex_Check() was introduced in Python 2.5. ........ r62290 | thomas.heller | 2008-04-11 16:20:26 +0200 (Fri, 11 Apr 2008) | 2 lines Performance improvements. ........ r62293 | christian.heimes | 2008-04-12 15:03:03 +0200 (Sat, 12 Apr 2008) | 2 lines Applied patch #2617 from Frank Wierzbicki wit some extras from me -J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future. ........ r62294 | georg.brandl | 2008-04-12 20:11:18 +0200 (Sat, 12 Apr 2008) | 2 lines Use absolute path in sys.path. ........ r62295 | georg.brandl | 2008-04-12 20:36:09 +0200 (Sat, 12 Apr 2008) | 2 lines #2615: small consistency update by Jeroen Ruigrok van der Werven. ........ r62296 | georg.brandl | 2008-04-12 21:00:20 +0200 (Sat, 12 Apr 2008) | 2 lines Add Jeroen. ........ r62297 | georg.brandl | 2008-04-12 21:05:37 +0200 (Sat, 12 Apr 2008) | 2 lines Don't offend snake lovers. ........ r62298 | gregory.p.smith | 2008-04-12 22:37:48 +0200 (Sat, 12 Apr 2008) | 2 lines fix compiler warnings ........ r62302 | gregory.p.smith | 2008-04-13 00:24:04 +0200 (Sun, 13 Apr 2008) | 3 lines socket.error inherits from IOError, it no longer needs listing in the all_errors tuple. ........ r62303 | brett.cannon | 2008-04-13 01:44:07 +0200 (Sun, 13 Apr 2008) | 8 lines Re-implement the 'warnings' module in C. This allows for usage of the 'warnings' code in places where it was previously not possible (e.g., the parser). It could also potentially lead to a speed-up in interpreter start-up if the C version of the code (_warnings) is imported over the use of the Python version in key places. Closes issue #1631171. ........ r62304 | gregory.p.smith | 2008-04-13 02:03:25 +0200 (Sun, 13 Apr 2008) | 3 lines Adds a profile-opt target for easy compilation of a python binary using gcc's profile guided optimization. ........ r62305 | brett.cannon | 2008-04-13 02:18:44 +0200 (Sun, 13 Apr 2008) | 3 lines Fix a bug in PySys_HasWarnOption() where it was not properly checking the length of the list storing the warning options. ........ r62306 | brett.cannon | 2008-04-13 02:25:15 +0200 (Sun, 13 Apr 2008) | 2 lines Fix an accidental bug of an non-existent init function. ........ r62308 | andrew.kuchling | 2008-04-13 03:05:59 +0200 (Sun, 13 Apr 2008) | 1 line Mention -J, -X ........ r62311 | benjamin.peterson | 2008-04-13 04:20:05 +0200 (Sun, 13 Apr 2008) | 2 lines Give the "Interactive Interpreter Changes" section in 2.6 whatsnew a unique link name ........ r62313 | brett.cannon | 2008-04-13 04:42:36 +0200 (Sun, 13 Apr 2008) | 3 lines Fix test_warnings by making the state of things more consistent for each test when it is run. ........ r62314 | skip.montanaro | 2008-04-13 05:17:30 +0200 (Sun, 13 Apr 2008) | 2 lines spelling ........ r62315 | georg.brandl | 2008-04-13 09:07:44 +0200 (Sun, 13 Apr 2008) | 2 lines Fix markup. ........ r62319 | christian.heimes | 2008-04-13 11:30:17 +0200 (Sun, 13 Apr 2008) | 1 line Fix compiler warning Include/warnings.h:19:28: warning: no newline at end of file ........ r62320 | christian.heimes | 2008-04-13 11:33:24 +0200 (Sun, 13 Apr 2008) | 1 line Use PyString_InternFromString instead of PyString_FromString for static vars ........ r62321 | christian.heimes | 2008-04-13 11:37:05 +0200 (Sun, 13 Apr 2008) | 1 line Added new files to the pcbuild files ........
* Breaking ground for PEP 3137 implementation:Guido van Rossum2007-10-081-1/+1
| | | | | | Get rid of buffer(). Use memoryview() in its place where possible. In a few places, do things a bit different, because memoryview() can't slice (yet).
* Remove the simple slicing API. All slicing is now done with slice objects.Thomas Wouters2007-08-301-2/+0
|