summaryrefslogtreecommitdiff
path: root/Lib/test/test_array.py
AgeCommit message (Collapse)AuthorLines
2006-04-10Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot,Tim Peters-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.
2006-03-17as is on the road to keyword-hood, use a different var name.Neal Norwitz-7/+7
2005-01-21Add a slice test with high < low.Walter Dörwald-0/+5
2004-12-16SF #1085304: Make array.array pickle-ableRaymond Hettinger-0/+19
2004-08-29SF feature request #992967: array.array objects should support sequences.Raymond Hettinger-3/+35
Made the constructor accept general iterables.
2004-05-31Add weakref support to array.array and file objects.Raymond Hettinger-0/+10
2004-03-14SF feature request #686323: Minor array module enhancementsRaymond Hettinger-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.
2004-03-13SF bug #910986: copy.copy fails for array.arrayRaymond Hettinger-0/+7
Added support for the copy module.
2003-08-03protect against test problems with JythonSkip Montanaro-6/+7
2003-08-03added test for bug 782369Skip Montanaro-0/+9
2003-05-22Walter's last checkin also needs to work on doubles.Neal Norwitz-7/+3
* Move new test_byteswap into FPTest. * Remove extra lines at end of file.
2003-05-22test_byteswap() fails on alphas, because treating the byte swapped bitWalter Dörwald-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.
2003-05-18Fix array.array.insert(), so that it treats negative indices asWalter Dörwald-0/+24
being relative to the end of the array, just like list.insert() does. This closes SF bug #739313.
2003-05-18Add another error case to the insert test.Walter Dörwald-0/+1
2003-05-18Port test_array and test_winsound to PyUnit. Enhance tests for arrayWalter Dörwald-331/+789
(code coverage for Modules/arraymodule.c is at 91%) From SF patch #736962.
2003-01-07SF patch #662433: Fill arraymodule's tp_iter and sq_contains slotsRaymond Hettinger-0/+6
2002-07-29Fix forMichael W. Hudson-0/+3
[ 587875 ] crash on deleting extended slice The array code got simpler, always a good thing!
2002-07-23Get rid of relative imports in all unittests. Now anything thatBarry Warsaw-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. :)
2002-06-19Fix the bug described inMichael W. Hudson-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.
2002-05-15This is patchMichael W. Hudson-28/+30
[ 555382 ] test_array v.s. --disable-unicode + MvL's suggestions. Just the 32 failing tests in --disable-unicode builds now...
2002-03-01Patch 520694: arraymodule.c improvements:Martin v. Löwis-4/+141
- make array.array a type - add Py_UNICODE arrays - support +=, *=
2001-01-17a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh-1/+1
'verify' iff it's used by a test module...
2001-01-17This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg-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.
2000-11-14Verify that str(a) and repr(a) don't blow up (part of SF patch 102068).Tim Peters-0/+5
2000-10-23Make reindent.py happy (convert everything to 4-space indents!).Fred Drake-158/+157
2000-09-16arraymodule: Fix SF bug 113960.Tim Peters-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.
2000-07-31added count, extend, index, pop and remove to arraymodulePeter Schneider-Kamp-0/+40
2000-06-28Trent Mick <trentm@activestate.com>:Fred Drake-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.
1998-07-16Add tests for array self-assigns. (This one has no relevance to JPython.)Guido van Rossum-1/+28
1998-03-26Mass check-in after untabifying all files that need it.Guido van Rossum-36/+36
1997-10-07Use `...` around binary strings.Guido van Rossum-1/+1
1997-04-09Use TESTFN instead of /etc/passwd and /dev/null as test files.Guido van Rossum-5/+12
1996-12-20Many scripts, but small changes. Update the way the scripts obtain theRoger E. Masse-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.
1996-12-09module to test the arraymodule created and added to testall.pyRoger E. Masse-0/+40