summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45668: Fix PGO tests without test extensions (GH-29315)Christian Heimes2021-11-011-2/+3
|
* bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005)Serhiy Storchaka2021-08-291-0/+1
|
* bpo-43988: Use check disallow instantiation helper (GH-26392)Erlend Egeberg Aasland2021-05-271-2/+3
|
* bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757)Erlend Egeberg Aasland2021-05-261-3/+3
|
* bpo-43916: Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to selected types (GH-25748)Erlend Egeberg Aasland2021-04-301-0/+6
| | | | | | | | | | | | | | | | | | | | | Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to the following types: * _dbm.dbm * _gdbm.gdbm * _multibytecodec.MultibyteCodec * _sre..SRE_Scanner * _thread._localdummy * _thread.lock * _winapi.Overlapped * array.arrayiterator * functools.KeyWrapper * functools._lru_list_elem * pyexpat.xmlparser * re.Match * re.Pattern * unicodedata.UCD * zlib.Compress * zlib.Decompress
* bpo-43908: Make array.array type immutable (GH-25696)Erlend Egeberg Aasland2021-04-291-0/+6
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-31956: Add start and stop parameters to array.index() (GH-25059)Zackery Spytz2021-04-021-0/+11
| | | Co-Authored-By: Anders Lorentsen <Phaqui@gmail.com>
* Fix typo in test_array.py (GH-23189)Ikko Ashimine2020-11-101-1/+1
|
* bpo-29727: Register array.array as a MutableSequence (GH-21338)Pablo Galindo2020-07-051-0/+66
|
* bpo-40275: Use new test.support helper submodules in tests (GH-20849)Hai Shi2020-06-251-9/+10
|
* bpo-40443: Remove unused imports in tests (GH-19804)Victor Stinner2020-04-301-1/+0
|
* bpo-38916: array.array: remove fromstring() and tostring() (GH-17487)Victor Stinner2019-12-091-20/+0
| | | | array.array: Remove tostring() and fromstring() methods. They were aliases to tobytes() and frombytes(), deprecated since Python 3.2.
* bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375)Zackery Spytz2019-05-171-2/+2
| | | | | | | The final addition (cur += step) may overflow, so use size_t for "cur". "cur" is always positive (even for negative steps), so it is safe to use size_t here. Co-Authored-By: Martin Panter <vadmium+py@gmail.com>
* bpo-36285: Fix integer overflow in the array module. (GH-12317)sth2019-03-201-0/+141
|
* bpo-36048: Use __index__() instead of __int__() for implicit conversion if ↵Serhiy Storchaka2019-02-251-0/+2
| | | | | | available. (GH-11952) Deprecate using the __int__() method in implicit conversions of Python numbers to C integers.
* Include the highest pickle protocol in a couple of tests. (GH-10735)Zackery Spytz2018-11-271-1/+1
| | | | | test_reduce_ex() in test_array.py and test_reversevaluesiterator_pickling() in test_dict.py weren't using the highest pickle protocol.
* bpo-24700: Add a fast path for comparing array.array of equal type (#3009)Adrian Wielgosik2017-08-171-0/+10
|
* bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements (#570)orenmn2017-03-091-15/+24
|
* Issue #27570: Merge null pointer fixes from 3.5Martin Panter2016-09-071-2/+12
|\
| * Issue #27570: Avoid zero-length memcpy() calls with null source pointersMartin Panter2016-09-071-2/+12
| |
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-2/+0
| |
* | Issue #26492: Exhausted iterator of array.array now conforms with the behaviorSerhiy Storchaka2016-03-301-2/+19
|/ | | | | of iterators of other mutable sequences: it lefts exhausted even if iterated array is extended.
* Issue #26015: Added new tests for pickling iterators of mutable sequences.Serhiy Storchaka2016-03-061-12/+35
|
* Issue #14203: Remove obsolete support for view==NULL in bytesiobuf_getbuffer()Stefan Krah2015-02-031-0/+5
| | | | and array_buffer_getbuf().
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-10/+11
|\
| * Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-10/+11
| |
* | Issue #20152: Port the array module to Argument Clinic.Brett Cannon2014-10-101-1/+3
|/
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-1/+0
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-1/+0
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* | Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
|\ \ | |/
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
| |
* | Issue #3693: Fix array obscure error message when given a str.Alexandre Vassalotti2013-11-301-0/+12
| |
* | Issue #19604: Use specific asserts in array tests.Serhiy Storchaka2013-11-161-34/+34
|\ \ | |/
| * Issue #19604: Use specific asserts in array tests.Serhiy Storchaka2013-11-161-34/+34
| |
| * Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-8/+9
| |
* | Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-8/+9
| |
* | (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
| |