summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
Commit message (Collapse)AuthorAgeFilesLines
* 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!
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Fix the bug described inMichael W. Hudson2002-06-191-1/+42
| | | | | | | | | http://mail.python.org/pipermail/python-dev/2002-June/025461.html with test cases. Also includes extended slice support for arrays, which I thought I'd already checked in but obviously not.
* This is patchMichael W. Hudson2002-05-151-28/+30
| | | | | | | [ 555382 ] test_array v.s. --disable-unicode + MvL's suggestions. Just the 32 failing tests in --disable-unicode builds now...
* Patch 520694: arraymodule.c improvements:Martin v. Löwis2002-03-011-4/+141
| | | | | | - make array.array a type - add Py_UNICODE arrays - support +=, *=
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Verify that str(a) and repr(a) don't blow up (part of SF patch 102068).Tim Peters2000-11-141-0/+5
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-161/+160
|
* arraymodule: Fix SF bug 113960.Tim Peters2000-09-161-2/+12
| | | | | | | | | | | | | | reverse() didn't work at all due to bad arg check. Fixed that. Added Brad Chapman to ACKS file, as the proud new owner of two implicitly copyrighted lines of Python source code <wink>. Repaired buffer_info's total lack of arg-checking. Replaced memmove by memcpy in reverse() guts, as memmove is often slower and the memory areas are guaranteed disjoint. Replaced poke-and-hope unchecked decl of tmp buffer size by assert-checked larger tmp buffer. Got rid of inconsistent spaces before open paren in docstrings. Added reverse() sanity tests to test_array.py.
* added count, extend, index, pop and remove to arraymodulePeter Schneider-Kamp2000-07-311-0/+40
|
* Trent Mick <trentm@activestate.com>:Fred Drake2000-06-281-2/+54
| | | | | | | | Testing: test_array.py was also extended to check that one can set the full range of values for each of the integral signed and unsigned array types. This closes SourceForge patch #100506.
* Add tests for array self-assigns. (This one has no relevance to JPython.)Guido van Rossum1998-07-161-1/+28
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-38/+38
|
* Use `...` around binary strings.Guido van Rossum1997-10-071-1/+1
|
* Use TESTFN instead of /etc/passwd and /dev/null as test files.Guido van Rossum1997-04-091-5/+12
|
* Many scripts, but small changes. Update the way the scripts obtain theRoger E. Masse1996-12-201-13/+25
| | | | | | | | | | | | | | | | 'verbose' flag ala GvR updated test harness architecture. Old way: verbose = 0 if __name__ == '__main__': verbose = 1 New way: from test_support import verbose Some other small readablility and functionality updates.
* module to test the arraymodule created and added to testall.pyRoger E. Masse1996-12-091-0/+40