summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization (ran reindent.py over the whole tree).Tim Peters2005-08-071-10/+10
|
* Disable a few other tests, that can't work if Python is compiled withoutWalter Dörwald2005-08-034-18/+30
| | | | Unicode support.
* PEP 342 implementation. Per Guido's comments, the generator throw()Phillip J. Eby2005-08-023-16/+273
| | | | | method still needs to support string exceptions, and allow None for the third argument. Documentation updates are needed, too.
* * Improve code for the empty frozenset singleton:Raymond Hettinger2005-08-011-0/+20
| | | | | | | | | | | - Handle both frozenset() and frozenset([]). - Do not use singleton for frozenset subclasses. - Finalize the singleton. - Add test cases. * Factor-out set_update_internal() from set_update(). Simplifies the code for several internal callers. * Factor constant expressions out of loop in set_merge_internal(). * Minor comment touch-ups.
* add support for svn: and svn+ssh: URL schemes to urlparseFred Drake2005-07-291-0/+5
|
* Disable encoding/decoding test, if unicode is disabled.Walter Dörwald2005-07-281-19/+20
|
* Fix all wrong instances of "it's".Georg Brandl2005-07-225-8/+8
|
* Make attributes and local variables in the StreamReader str objects insteadWalter Dörwald2005-07-201-0/+17
| | | | | of unicode objects, so that codecs that do a str->str decoding won't promote the result to unicode. This fixes SF bug #1241507.
* Whitespace normalization.Tim Peters2005-07-172-2/+2
|
* Add support for FreeBSD 7.Hye-Shik Chang2005-07-173-1/+3
|
* RFE [ 1216944 ] Add Error Code Dictionary to urllib2Georg Brandl2005-07-141-0/+4
|
* Fix:Michael W. Hudson2005-07-121-0/+20
| | | | | | | [ 1229429 ] missing Py_DECREF in PyObject_CallMethod Add a test in test_enumerate, which is a bit random, but suffices (reversed_new calls PyObject_CallMethod under some circumstances).
* Add test for hash commutativity.Raymond Hettinger2005-07-051-0/+10
|
* Add doctest for examples in libweakref.tex to test_weakref.Georg Brandl2005-07-021-0/+86
|
* SF bug #1224347: int/long unification and hex()Raymond Hettinger2005-06-291-1/+1
| | | | Hex longs now print with lowercase letters like their int counterparts.
* Adapt output file to new Cookie JS output.Georg Brandl2005-06-271-4/+4
|
* Fix test cases for doctest.Georg Brandl2005-06-261-0/+3
|
* 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
|