summaryrefslogtreecommitdiff
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* fix typos, mostly in commentsFred Drake2005-10-282-2/+2
|
* Patch #1338314, Bug #1336623: fix tarfile so it can extractNeal Norwitz2005-10-281-0/+30
| | | | | | REGTYPE directories from tarfiles written by old programs. Will backport.
* Fix problem handling EXTENDED_ARGs from SF bug # 1333982Neal Norwitz2005-10-241-0/+23
|
* Fix compiler test when run with -u (long mode)Neal Norwitz2005-10-241-1/+1
|
* Fix arigo's funky LOAD_NAME bug: implicit globals inside classes haveNeil Schemenauer2005-10-231-0/+9
| | | | | historically been looked up using LOAD_NAME, not LOAD_GLOBAL. looked up by LOAD_NAME, not
* Revert previous checkin:Neal Norwitz2005-10-221-1/+1
| | | | | | According to Jeremy, the comment only made sense when the yield was disallowed. Now it's testing that the yield is allowed, so it's not bad and the outer finally is irrelevant.
* Revert change, func_name of lambda's is back to <lambda>.Neil Schemenauer2005-10-211-1/+1
|
* Fix bug:Michael W. Hudson2005-10-212-0/+20
| | | | | | | | [ 1327110 ] wrong TypeError traceback in generator expressions by removing the code that can stomp on the users' TypeError raised by the iterable argument to ''.join() -- PySequence_Fast (now?) gives a perfectly reasonable message itself. Also, a couple of tests.
* Fix SF bug #1167751, Argument genexp corner caseNeal Norwitz2005-10-211-2/+14
| | | | | | | | | | | | | Incorrect code was generated for: foo(a = i for i in range(10)) This should have generated a SyntaxError. Fix the Grammar so it raises a SyntaxError and test it. I'm uncertain whether this should be backported. It makes something that was Syntactically valid invalid. However, the code would either be completely broken or do the wrong thing.
* Add comment lost from AST mergeNeal Norwitz2005-10-211-1/+1
|
* Merge ast-branch to headJeremy Hylton2005-10-2012-70/+214
| | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
* Disable some tests in anticipation of merging ast-branch to the headJeremy Hylton2005-10-202-29/+37
|
* Fix SF bug # 1330039, patch # 1331635 from Lars Gustaebel (tarfile maintainer)Neal Norwitz2005-10-201-1/+48
| | | | | | | | | | | | | | Problem: if two files are assigned the same inode number by the filesystem, the second one will be added as a hardlink to the first, which means that the content will be lost. The patched code checks if the file's st_nlink is greater 1. So only for files that actually have several links pointing to them hardlinks will be created, which is what GNU tar does. Will backport.
* Teach unquote() to handle unicode inputsRaymond Hettinger2005-10-151-0/+4
|
* Fix unit test failure -- the output received from Python can be empty,Guido van Rossum2005-10-081-1/+1
| | | | but verify_valid_flag() wasn't expecting that. Will backport.
* Part of SF patch #1313939: Speedup charmap decoding by extendingWalter Dörwald2005-10-061-1/+36
| | | | | | | PyUnicode_DecodeCharmap() the accept a unicode string as the mapping argument which is used as a mapping table. This code isn't used by any of the codecs yet.
* SF #1313496: bisect C replacement doesn't accept named argsRaymond Hettinger2005-10-051-0/+10
|
* SF bug #887946, segfault if redirecting directoryNeal Norwitz2005-10-031-0/+50
| | | | | | | Also provide a warning if a directory is passed on the command line. Add minimal command line test. Will backport.
* - Fix segfault with invalid coding.Neal Norwitz2005-10-022-0/+22
| | | | | | | - SF Bug #772896, unknown encoding results in MemoryError, which is not helpful I will only backport the segfault fix. I'll let Anthony decide if he wants the other changes backported. I will do the backport if asked.
* Patch #1309009, Fix segfault in pyexpat when the XML document isNeal Norwitz2005-09-301-0/+9
| | | | | | in latin_1, but Python incorrectly assumes it is in UTF-8 format Will backport.
* some more fixes and tests for inspect.getsource(), triggered by crashesArmin Rigo2005-09-252-0/+36
| | | | from the PyPy project as well as the SF bug #1295909.
* Convert iterator __len__() methods to a private API.Raymond Hettinger2005-09-243-1/+13
|
* Patches #1298449 and #1298499: Add some missing checks for errorMichael W. Hudson2005-09-221-0/+7
| | | | | | returns in cStringIO.c. Thanks to Andrew Bennetts. This must be a backport candidate.
* MacOSX 10.4 apparently does not allow the creation time to be set to laterJack Jansen2005-09-211-2/+2
| | | | | | than the modification time. Changed the SetDates test to accomodate. Backport candidate.
* test and fix for buggy handling of exceptions raised by C functions,Armin Rigo2005-09-201-2/+21
| | | | | causing the profiler to crash on an AssertionError if the same Python function catches multiple exceptions from C functions.
* skip _locale test if OS X < 10.4Skip Montanaro2005-09-191-0/+6
|
* Test case for latest complexobject fix.Georg Brandl2005-09-171-0/+2
|
* No longer ignore exceptions raised by comparisons during key lookup.Raymond Hettinger2005-09-161-0/+17
| | | | Inspired by Armin Rigo's suggestion to do the same with dictionaries.
* Clear out the regex cache when the TimeRE cache is invalidated by a localeBrett Cannon2005-09-151-0/+2
| | | | | | change. Fixes 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).
* Bug #1202493: Fixing SRE parser to handle '{}' as perl does, rather thanGustavo Niemeyer2005-09-141-0/+3
| | | | considering it exactly like a '*'.
* Revert 1.170. Add tests.Raymond Hettinger2005-09-101-0/+6
|
* SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complainWalter Dörwald2005-08-302-3/+82
| | | | | about illegal code points. The codec now supports PEP 293 style error handlers. (This is a variant of the Nik Haldimann's patch that detects truncated data)
* Patch #1168594: set sizes of non-regular files to zero. Fixes #1167128.Martin v. Löwis2005-08-271-0/+35
| | | | Will backport to 2.4.
* Whitespace normalization (via reindent.py).Tim Peters2005-08-264-6/+5
|
* testSeekBackwardsFromEnd(): Repair obvious syntax error.Tim Peters2005-08-261-1/+1
|
* Add list() around xreadlines()Georg Brandl2005-08-261-2/+2
|
* *** empty log message ***Georg Brandl2005-08-261-11/+11
|
* patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieveGeorg Brandl2005-08-261-9/+93
|
* patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on WindowsGeorg Brandl2005-08-261-0/+2
|
* bug [ 1262320 ] minidom.py alternate newl support is brokenGeorg Brandl2005-08-251-4/+11
|
* Make IDNA return an empty string when the input is empty. Fixes #1163178.Martin v. Löwis2005-08-251-0/+6
| | | | Will backport to 2.4.
* Correct test suite for #848017.Georg Brandl2005-08-251-3/+3
|
* Bug #735248: Fix urllib2.parse_http_list.Georg Brandl2005-08-241-0/+8
|
* patch [ 1141428 ] more __contains__ testsGeorg Brandl2005-08-242-2/+29
|
* [ 1113421 ] New tutorial tests in test_generators.pyGeorg Brandl2005-08-241-0/+78
|
* bug [ 728515 ] mmap's resize method resizes the file in win32 but not unixGeorg Brandl2005-08-241-0/+8
|
* [ sf.net patch # 1121611 ]Gregory P. Smith2005-08-214-4/+292
| | | | | | | | | A new hashlib module to replace the md5 and sha modules. It adds support for additional secure hashes such as SHA-256 and SHA-512. The hashlib module uses OpenSSL for fast platform optimized implementations of algorithms when available. The old md5 and sha modules still exist as wrappers around hashlib to preserve backwards compatibility.
* Fix BZ2File.(x)readlines() for files without a newline.Georg Brandl2005-08-211-1/+17
|
* 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().