summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27570: Avoid zero-length memcpy() calls with null source pointersMartin Panter2016-09-071-3/+13
|
* Issue #24613: Calling array.fromstring() with self is no longer allowedSerhiy Storchaka2015-07-261-0/+1
| | | | to prevent the use-after-free error. Patch by John Leitch.
* Fixed the array module in unicode disabled build (regression of issue20014).Serhiy Storchaka2015-05-311-1/+4
|
* Issue #20014: array.array() now accepts unicode typecodes. Based on patch bySerhiy Storchaka2015-05-161-0/+21
| | | | Vajrasky Kok.
* 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.
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-1/+1
|
* 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 #15424: Add a __sizeof__ implementation for array objects.Meador Inge2012-08-111-0/+13
| | | | Patch by Ludwig Hähne.
* test_array: make quiet the DeprecationWarningVictor Stinner2011-07-051-1/+4
|
* Merged revisions ↵Georg Brandl2011-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87050,87101,87146,87156,87172,87175,87371,87378,87522-87524,87526,87530-87535 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87050 | georg.brandl | 2010-12-04 18:09:30 +0100 (Sa, 04 Dez 2010) | 1 line Fix typo. ........ r87101 | georg.brandl | 2010-12-06 23:02:48 +0100 (Mo, 06 Dez 2010) | 1 line Remove visible XXX comments. ........ r87146 | georg.brandl | 2010-12-09 19:08:43 +0100 (Do, 09 Dez 2010) | 1 line Fix "seperate". ........ r87156 | georg.brandl | 2010-12-10 11:01:44 +0100 (Fr, 10 Dez 2010) | 1 line #10668: fix wrong call of __init__. ........ r87172 | georg.brandl | 2010-12-11 20:10:30 +0100 (Sa, 11 Dez 2010) | 1 line Avoid AttributeError(_closed) when a TemporaryDirectory is deallocated whose mkdtemp call failed. ........ r87175 | georg.brandl | 2010-12-11 23:19:34 +0100 (Sa, 11 Dez 2010) | 1 line Fix markup. ........ r87371 | georg.brandl | 2010-12-18 17:21:58 +0100 (Sa, 18 Dez 2010) | 1 line Fix typo. ........ r87378 | georg.brandl | 2010-12-18 18:51:28 +0100 (Sa, 18 Dez 2010) | 1 line #10723: add missing builtin exceptions. ........ r87522 | georg.brandl | 2010-12-28 10:16:12 +0100 (Di, 28 Dez 2010) | 1 line Replace sys.maxint mention by sys.maxsize. ........ r87523 | georg.brandl | 2010-12-28 10:18:24 +0100 (Di, 28 Dez 2010) | 1 line Remove confusing paragraph -- this is relevant only to advanced users anyway and does not belong into the tutorial. ........ r87524 | georg.brandl | 2010-12-28 10:29:19 +0100 (Di, 28 Dez 2010) | 1 line Fix advice: call PyType_Ready to fill in ob_type of custom types. ........ r87526 | georg.brandl | 2010-12-28 11:38:33 +0100 (Di, 28 Dez 2010) | 1 line #10777: fix iteration over dict keys while mutating the dict. ........ r87530 | georg.brandl | 2010-12-28 12:06:07 +0100 (Di, 28 Dez 2010) | 1 line #10767: update README in crashers; not all may have a bug entry and/or be fixed. ........ r87531 | georg.brandl | 2010-12-28 12:08:17 +0100 (Di, 28 Dez 2010) | 1 line #10742: document readonly attribute of memoryviews. ........ r87532 | georg.brandl | 2010-12-28 12:15:49 +0100 (Di, 28 Dez 2010) | 1 line #10781: clarify that *encoding* is not a parameter for Node objects in general. ........ r87533 | georg.brandl | 2010-12-28 12:38:12 +0100 (Di, 28 Dez 2010) | 1 line Remove history; adapt a bit more to reST, since this will once be part of the dev guide. ........ r87534 | georg.brandl | 2010-12-28 12:48:53 +0100 (Di, 28 Dez 2010) | 1 line Rewrap. ........ r87535 | georg.brandl | 2010-12-28 12:49:41 +0100 (Di, 28 Dez 2010) | 1 line #10739: document that on Windows, socket.makefile() does not make a file that has a true file descriptor usable where such a thing is expected. ........
* Reverted r87944 - issue #5109 should not have been backportedAlexander Belopolsky2011-01-111-10/+0
|
* Merged revisions 87942 via svnmerge fromAlexander Belopolsky2011-01-111-0/+10
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87942 | alexander.belopolsky | 2011-01-11 16:44:00 -0500 (Tue, 11 Jan 2011) | 3 lines Issue #5109: array.array constructor will now use fast code when initial data is provided in an array object with correct type. ........
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* Merged revisions 83030 via svnmerge fromAntoine Pitrou2010-07-211-0/+11
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83030 | antoine.pitrou | 2010-07-21 18:41:31 +0200 (mer., 21 juil. 2010) | 5 lines 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) ........
* #7092 - Silence more py3k deprecation warnings, using ↵Florent Xicluna2010-03-211-1/+2
| | | | test_support.check_py3k_warnings() helper.
* Issue #7788: Fix a crash produced by deleting a list slice with hugeMark Dickinson2010-01-291-0/+3
| | | | step value. Patch by Marcin Bachry.
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-3/+3
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-3/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+3
| | | | Patch by flox
* Add test of file.write(array) extracted from Jython.Frank Wierzbicki2009-08-161-0/+19
|
* Backport test cases added in r73852.Alexandre Vassalotti2009-07-051-0/+13
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-37/+37
|
* Issue #4740: Use HIGHEST_PROTOCOL in pickle test.Hirokazu Yamamoto2008-12-271-3/+3
| | | | (There is no behavior difference in 2.x because HIGHEST_PROTOCOL == 2)
* fix for issue 3862: test_array fails FreeBSD 7 amd64Andrew MacIntyre2008-10-011-4/+5
| | | | | | | | | 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.
* Merge in release25-maint r60793:Gregory P. Smith2008-06-111-0/+17
| | | | | | 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.
* Remove the test file before writing it in case there is no write permission.Neal Norwitz2008-04-101-0/+1
| | | | | | 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).
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Improve extended slicing support in builtin types and classes. Specifically:Thomas Wouters2007-08-281-0/+34
| | | | | | | | | | | | | | | | | | | | - Specialcase extended slices that amount to a shallow copy the same way as is done for simple slices, in the tuple, string and unicode case. - Specialcase step-1 extended slices to optimize the common case for all involved types. - For lists, allow extended slice assignment of differing lengths as long as the step is 1. (Previously, 'l[:2:1] = []' failed even though 'l[:2] = []' and 'l[:2:None] = []' do not.) - Implement extended slicing for buffer, array, structseq, mmap and UserString.UserString. - Implement slice-object support (but not non-step-1 slice assignment) for UserString.MutableString. - Add tests for all new functionality.
* Fix warnings about object.__init__() signature.Guido van Rossum2007-04-021-1/+0
| | | | | | Two (test_array and test_descr) were bug IMO; the third (copy_reg) is a work-around which recognizes that object.__init__() doesn't do anything.
* SF #1693079: Cannot save empty array in shelveRaymond Hettinger2007-04-021-0/+15
|
* Bug #1486663: don't reject keyword arguments for subclasses of builtinGeorg Brandl2007-01-211-0/+7
| | | | types.
* Fix SF bug #1545837: array.array borks on deepcopy.Thomas Wouters2006-08-241-0/+7
| | | | | array.__deepcopy__() needs to take an argument, even if it doesn't actually use it. Will backport to 2.5 and 2.4 (if applicable.)
* Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot,Tim Peters2006-04-101-1/+1
| | | | | due to that id() may return a long on a 32-bit box now. On a box that assigns addresses "with the sign bit set", id() always returns a long now.
* as is on the road to keyword-hood, use a different var name.Neal Norwitz2006-03-171-7/+7
|
* Add a slice test with high < low.Walter Dörwald2005-01-211-0/+5
|
* SF #1085304: Make array.array pickle-ableRaymond Hettinger2004-12-161-0/+19
|
* SF feature request #992967: array.array objects should support sequences.Raymond Hettinger2004-08-291-3/+35
| | | | Made the constructor accept general iterables.
* Add weakref support to array.array and file objects.Raymond Hettinger2004-05-311-0/+10
|
* SF feature request #686323: Minor array module enhancementsRaymond Hettinger2004-03-141-0/+7
| | | | | | | array.extend() now accepts iterable arguments implements as a series of appends. Besides being a user convenience and matching the behavior for lists, this the saves memory and cycles that would be used to create a temporary array object.
* SF bug #910986: copy.copy fails for array.arrayRaymond Hettinger2004-03-131-0/+7
| | | | Added support for the copy module.
* protect against test problems with JythonSkip Montanaro2003-08-031-6/+7
|
* added test for bug 782369Skip Montanaro2003-08-031-0/+9
|
* Walter's last checkin also needs to work on doubles.Neal Norwitz2003-05-221-7/+3
| | | | | * Move new test_byteswap into FPTest. * Remove extra lines at end of file.
* test_byteswap() fails on alphas, because treating the byte swapped bitWalter Dörwald2003-05-221-0/+17
| | | | | | | | | | patterns as floats/doubles results in floating point exceptions. Fix this by implementing a separate test_byteswap() for the floating point tests. This new test compares the tostring() values of both arrays instead of the arrays themselves. Discovered by Neal Norwitz.
* Fix array.array.insert(), so that it treats negative indices asWalter Dörwald2003-05-181-0/+24
| | | | | being relative to the end of the array, just like list.insert() does. This closes SF bug #739313.
* Add another error case to the insert test.Walter Dörwald2003-05-181-0/+1
|
* Port test_array and test_winsound to PyUnit. Enhance tests for arrayWalter Dörwald2003-05-181-363/+821
| | | | | | (code coverage for Modules/arraymodule.c is at 91%) From SF patch #736962.
* SF patch #662433: Fill arraymodule's tp_iter and sq_contains slotsRaymond Hettinger2003-01-071-0/+6
|
* Fix forMichael W. Hudson2002-07-291-0/+3
| | | | | | [ 587875 ] crash on deleting extended slice The array code got simpler, always a good thing!