summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #1224621: tokenize module does not detect inconsistent dedentsRaymond Hettinger2005-06-211-1/+19
|
* test_asynchat is no longer expected to produce output.Michael W. Hudson2005-06-202-4/+3
| | | | also, wait for threads to finish before proceeding.
* SF patch #1200018: Restore GC support to set objectsRaymond Hettinger2005-06-181-0/+10
| | | | | Reverts 1.26 and 1.27. And adds cycle testing.
* Add tests for posix O_SHLOCK & O_EXLOCK. Missed checking this in withSkip Montanaro2005-06-171-0/+31
| | | | posixmodule.c 2.335. Really should be considered part of patch #1103951.
* [Patch #1005892 from Alexandr Zamaraev] Fix two errors in the curses test suiteAndrew M. Kuchling2005-06-151-1/+2
|
* yet another cache to clear when leak hunting.Michael W. Hudson2005-06-141-0/+2
|
* Port test_long.py to unittest.Walter Dörwald2005-06-131-508/+451
|
* Fix bugMichael W. Hudson2005-06-131-0/+9
| | | | | | | | [ 1180997 ] lax error-checking in new-in-2.4 marshal stuff which I'd assigned to Martin, but actually turned out to be easy to fix. Also, a test.
* Add untokenize() function to allow full round-trip tokenization.Raymond Hettinger2005-06-102-4/+76
| | | | | | Should significantly enhance the utility of the module by supporting the creation of tools that modify the token stream and writeback the modified result.
* Convert asynchat test to unittest; exercise the client using a numeric value ↵Andrew M. Kuchling2005-06-091-14/+46
| | | | as the terminator
* [Bug #1074261, patch #1074381] Restrict the size of chunks read from the ↵Andrew M. Kuchling2005-06-091-0/+23
| | | | file in order to avoid overflow or huge memory consumption. Patch by Mark Eichin
* Convert gzip test suite to use unittestAndrew M. Kuchling2005-06-091-74/+110
|
* [Patch #1171487, bug #1170331] Fix error in base64.b32decode when encoding a ↵Andrew M. Kuchling2005-06-081-0/+6
| | | | single null byte; test a null byte in all encodings to be sure it works
* Tools/scripts/reindent.py _is_ your friendAnthony Baxter2005-06-081-3/+3
|
* [Bug #1172763] dumbdbm uses eval() on lines, so it chokes if there's an ↵Andrew M. Kuchling2005-06-071-0/+18
| | | | extra \r on the end of a line; fixed by stripping off trailing whitespace.
* Fix missing assignments of marshal.load() values. Closes #1214662.Skip Montanaro2005-06-041-7/+7
|
* Whitespace normalization.Tim Peters2005-06-033-9/+9
|
* Bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.Georg Brandl2005-06-031-0/+10
|
* [ 1197218 ] test_locale fix on modern linuxAnthony Baxter2005-06-031-8/+10
| | | | | | | On more modern linuxes (and probably others) straight 'en_US' isn't a valid locale. Make the code try a couple of alternates. backport candidate
* This is my patch:Michael W. Hudson2005-06-031-1/+15
| | | | | | | | | [ 1180995 ] binary formats for marshalling floats Adds 2 new type codes for marshal (binary floats and binary complexes), a new marshal version (2), updates MAGIC and fiddles the de-serializing of code objects to be less likely to clobber the real reason for failing if it fails.
* Bug #1213894: os.path.realpath didn't resolve symlinks that were the firstGeorg Brandl2005-06-031-0/+20
| | | | component of the path.
* M-x untabifyMichael W. Hudson2005-06-031-9/+9
|
* [Bug #1177831] Exercise (?(id)yes|no) for a group other than the first oneAndrew M. Kuchling2005-06-021-0/+10
|
* Fix compiler.ast.flatten function so that it works on lists.Neil Schemenauer2005-06-021-0/+5
|
* This is my patch:Michael W. Hudson2005-05-271-0/+110
| | | | | | | | | | | | | | [ 1181301 ] make float packing copy bytes when they can which hasn't been reviewed, despite numerous threats to check it in anyway if noone reviews it. Please read the diff on the checkin list, at least! The basic idea is to examine the bytes of some 'probe values' to see if the current platform is a IEEE 754-ish platform, and if so _PyFloat_{Pack,Unpack}{4,8} just copy bytes around. The rest is hair for testing, and tests.
* Fix test_site to not call open('...', 'wU'), as that now raises an error.Michael W. Hudson2005-05-271-1/+1
| | | | Is anyone running the test suite regularly at the moment?
* Disallow opening files with modes 'aU' or 'wU' as specified by PEPSkip Montanaro2005-05-201-0/+10
| | | | 278. Closes bug 967182.
* This test relied on short-circuiting details of dictobject.py to avoidArmin Rigo2005-05-151-4/+2
| | | | | | | | | crashing, and indirectly on the fact that hash codes in random.randrange(1000000000) were very unlikely to exhibit collisions. To see the problem, replace this number with 500 and observe the crash on either del target[key] or del keys[i]. The fix prevents recursive mutation, just as in the key insertion case.
* Add better datetime support to xmlrpclib module. Closes patch #1120353.Skip Montanaro2005-05-141-6/+38
|
* Don't use 'is not' to compare strings.Michael W. Hudson2005-05-041-1/+1
| | | | (spotted by reading pypy-svn :)
* Fix error in a docstring where a single quote started the docstring but tripleBrett Cannon2005-04-301-1/+1
| | | | | | quote ended it. Closes bug #1192777. Thanks Christopher Smith.
* Make subclasses of int, long, complex, float, and unicode perform typeBrett Cannon2005-04-264-1/+245
| | | | | | | conversion using the proper magic slot (e.g., __int__()). Also move conversion code out of PyNumber_*() functions in the C API into the nb_* function. Applied patch #1109424. Thanks Walter Doewald.
* Update test to the current readline() behaviour.Walter Dörwald2005-04-211-0/+2
|
* Fix tests dependent on the exception raised by non-settable descriptors.Barry Warsaw2005-04-203-5/+6
|
* Whitespace normalization.Tim Peters2005-04-202-2/+2
|
* Flush out support for ``class B(): pass`` syntax by adding support to theBrett Cannon2005-04-092-0/+6
| | | | | | 'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix.
* Add test for ``class B1(): pass``.Brett Cannon2005-04-091-1/+2
|
* test_default_encoding_issues(): Fully restore sys.setdefaultencoding.Tim Peters2005-04-081-0/+7
| | | | | | | | | | test_site often failed under "regrtest.py -r", because this xmlrpc test left sys with a setdefaultencoding attribute, but loading site.py removes that attribute and test_site.py verifies the attribute is gone. Changed this test to get rid of sys.setdefaultencoding if it didn't exist when this test started. Don't know whether this is a bugfix (backport) candidate.
* Fix for SF bug #1175396: readline() will now read one more character, ifWalter Dörwald2005-04-041-9/+82
| | | | | | | | | | | | the last character read is "\r" (and size is None, i.e. we're allowed to call read() multiple times), so that we can return the correct line ending (this additional character might be a "\n"). If the stream is temporarily exhausted, we might return the wrong line ending (if the last character read is "\r" and the next one (after the byte stream provides more data) is "\n", but at least the atcr member ensure that we get the correct number of lines (i.e. this "\n" will not be treated as another line ending.)
* Fix testcase for 64bit BSD systems: long is 8 bytes for those systemsHye-Shik Chang2005-04-041-2/+8
| | | | so there's no need to pad after off_t members. And a small typo fix.
* Fix for rather inaccurately titled bugMichael W. Hudson2005-03-301-0/+10
| | | | | | | | | [ 1165306 ] Property access with decorator makes interpreter crash Don't allow the creation of unbound methods with NULL im_class, because attempting to call such crashes. Backport candidate.
* Whitespace normalization.Tim Peters2005-03-285-10/+9
|
* SF patch #1171417: bug fix for islice() in docsRaymond Hettinger2005-03-271-0/+5
|
* * Fix decimal's handling of foreign types. Now returns NotImplementedRaymond Hettinger2005-03-271-7/+50
| | | | | | | instead of raising a TypeError. Allows other types to successfully implement __radd__() style methods. * Remove future division import from test suite. * Remove test suite's shadowing of __builtin__.dir().
* SF bug #1770766: weakref proxy has incorrect __nonzero__ behavior.Raymond Hettinger2005-03-271-0/+6
|
* Add tests for tuple, list and UserList that initialize the object fromWalter Dörwald2005-03-222-83/+97
| | | | | | various iterables. (Copied from test_deque.py as suggested by Jim Jewett in SF bug #1166274)
* Fix typo.Walter Dörwald2005-03-221-1/+1
|
* Add list tests that ensure that remove() removes the first occurrence.Walter Dörwald2005-03-211-0/+20
| | | | (Copied from test_deque.py as suggested by Jim Jewett in SF bug #1166274)
* Apply remove's mutation test after every equality test.Raymond Hettinger2005-03-191-7/+8
|
* Add a remove() method to collections.deque objects.Raymond Hettinger2005-03-181-0/+35
|