summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Backport (with Anthony's blessing (in fact he reminded me to do it :)):Michael W. Hudson2005-09-261-0/+7
| | | | | | | Patches #1298449 and #1298499: Add some missing checks for error returns in cStringIO.c. Thanks to Andrew Bennetts. This must be a backport candidate.
* Backport Jack Jansen's fix for test_macfs.py (broke on OS X 10.4.2).Guido van Rossum2005-09-221-2/+2
|
* (backport) test and fix for buggy handling of exceptions raised by CArmin Rigo2005-09-201-2/+21
| | | | | functions, causing the profiler to crash on an AssertionError if the same Python function catches multiple exceptions from C functions.
* backport:Anthony Baxter2005-09-201-0/+7
| | | | | | | | | | test_default_encoding_issues(): Fully restore sys.setdefaultencoding. 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.
* Bug #1202493: Fixing SRE parser to handle '{}' as perl does, rather thanGeorg Brandl2005-09-181-0/+3
| | | | | | considering it exactly like a '*'. Backport from 2.5 branch.
* Test case for latest complexobject fix.Georg Brandl2005-09-171-0/+2
|
* Clear the regex cache when the locale changes.Brett Cannon2005-09-151-0/+2
| | | | Backport of fix for bug #1290505.
* - Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum2005-09-142-5/+37
| | | | | with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
* Backport checkin:Walter Dörwald2005-08-302-3/+82
| | | | | | SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain about illegal code points. The codec now supports PEP 293 style error handlers. (This is a variant of the patch by Nik Haldimann that detects truncated data)
* Patch #1168594: set sizes of non-regular files to zero. Fixes #1167128.Martin v. Löwis2005-08-271-0/+35
|
* Add list() around xreadlines()Georg Brandl2005-08-261-1/+1
|
* backport patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieveGeorg Brandl2005-08-261-9/+93
|
* backport patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on WindowsGeorg Brandl2005-08-261-0/+2
|
* backport bug [ 1262320 ] minidom.py alternate newl support is brokenGeorg Brandl2005-08-251-4/+11
|
* Backport fixes for bugs #1191043 and #1215928.Georg Brandl2005-08-251-1/+17
|
* Make IDNA return an empty string when the input is empty. Fixes #1163178.Martin v. Löwis2005-08-251-0/+6
|
* Backport bug #735248: fix urllib2.parse_http_list().Georg Brandl2005-08-241-0/+8
|
* backport bug [ 728515 ] mmap's resize method resizes the file in win32 but ↵Georg Brandl2005-08-241-0/+8
| | | | not unix
* SF bug #1242657: list(obj) can swallow KeyboardInterruptRaymond Hettinger2005-08-211-0/+9
| | | | | | Fix over-aggressive PyErr_Clear(). The same code fragment appears in various guises in list.extend(), map(), filter(), zip(), and internally in PySequence_Tuple().
* Fix for SF bug # 900092, hotshot.stats.load assertion failure. This patchBarry Warsaw2005-08-151-0/+1
| | | | | | | restores the tracing of a 'return' event for exceptions that cause a function to exit. Also, update the unit test. I will port to Python 2.5.
* Complete backport of #1172785 fix.Georg Brandl2005-08-131-0/+3
|
* Teach set modules to correctly compute s-=s and s^=s as the empty set.Raymond Hettinger2005-08-132-0/+25
|
* * SF bug #1257731: Fix logic in set.__contains__(), set.remove(),Raymond Hettinger2005-08-121-0/+13
| | | | | | | | and set.discard for handling keys that both inherite from set and define their own __hash__() function. * Fixed O(n) performance issue with set.pop() which should have been an O(1) process.
* add support for svn: and svn+ssh: URL schemes to urlparseFred Drake2005-07-291-0/+5
| | | | (backported from trunk urlparse.py 1.48, test_urlparse.py 1.15)
* Fix all wrong instances of "it's".Georg Brandl2005-07-225-8/+8
|
* Backport checkin:Walter Dörwald2005-07-201-1/+18
| | | | | | Make attributes and local variables in the StreamReader str objects instead of unicode objects, so that codecs that do a str->str decoding won't promote the result to unicode. This fixes SF bug #1241507.
* backport doctest for weakref examplesGeorg Brandl2005-07-021-0/+86
|
* SF bug #1224621: tokenize module does not detect inconsistent dedentsRaymond Hettinger2005-06-211-1/+19
|
* SF patch #1200018: Restore GC support to set objectsRaymond Hettinger2005-06-191-0/+10
| | | | | Reverts 1.26 and 1.27. And adds cycle testing.
* backport Lib/test/test_class.py revision 1.13:Michael W. Hudson2005-06-161-1/+1
| | | | | Don't use 'is not' to compare strings. (spotted by reading pypy-svn :)
* [Patch #1005892 from Alexandr Zamaraev] Fix two errors in the curses test suiteAndrew M. Kuchling2005-06-151-1/+2
|
* [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-082-5/+5
|
* [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.
* Backport bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.Georg Brandl2005-06-031-0/+10
|
* backport of [ 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 bug #1213894: os.path.realpath didn't resolve symlinks that were ↵Georg Brandl2005-06-031-0/+20
| | | | | | the first component of the path.
* whitespace normalisationAnthony Baxter2005-06-033-3/+3
|
* fix exceptions.TabError. _Please_ run test suite before checking in.Anthony Baxter2005-06-031-9/+9
|
* [Bug #1177831] Fix (?(id)yes|no) for a group other than the first one, and ↵Andrew M. Kuchling2005-06-021-0/+10
| | | | add a test case
* Fix a docstring with mismatched opening and closing quotes.Brett Cannon2005-04-301-1/+1
| | | | Backport of fix for bug #1192777.
* Backport checkin (and the appropriate fix to the test):Walter Dörwald2005-04-211-0/+2
| | | | | | | | | | | | If the data read from the bytestream in readline() ends in a '\r' read one more byte, even if the user has passed a size parameter. This extra byte shouldn't cause a buffer overflow in the tokenizer. The original plan was to return a line ending in '\r', which might be recognizable as a complete line and skip any '\n' that was read afterwards. Unfortunately this didn't work, as the tokenizer only recognizes '\n' as line ends, which in turn lead to joined lines and SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It can only happen with a temporarily exhausted bytestream now anyway.) Fixes parts of SF bugs #1163244 and #1175396.
* Backport checkin:Walter Dörwald2005-04-041-9/+82
| | | | | | | | | | | | | Fix for SF bug #1175396: readline() will now read one more character, if 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 ensures that we get the correct number of lines (i.e. this "\n" will not be treated as another line ending).
* Backport from 1.27:Hye-Shik Chang2005-04-041-2/+8
| | | | | Fix testcase for 64bit BSD systems: long is 8 bytes for those systems so there's no need to pad after off_t members. And a small typo fix.
* Backport:Michael W. Hudson2005-03-311-0/+10
| | | | | | | | | | | Fix for rather inaccurately titled bug [ 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.
* SF bug #1770766: weakref proxy has incorrect __nonzero__ behavior.Raymond Hettinger2005-03-311-0/+6
|
* - Fixed decimal operator and comparison methods to return NotImplementedRaymond Hettinger2005-03-271-7/+50
| | | | | instead of raising a TypeError when interacting with other types. Allows other classes to successfully implement __radd__ style methods.
* Decimal special values did not hash properly.Raymond Hettinger2005-03-151-0/+3
|
* Backport checkin:Walter Dörwald2005-03-141-0/+11
| | | | Reset internal buffers when seek() is called. This fixes SF bug #1156259.
* Backport of change to os.access to encode Unicode file names withMartin v. Löwis2005-03-131-0/+2
| | | | the file system encoding.