summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Catch locale.error as well. Fixes #788378. Will backport to 2.3.Martin v. Löwis2003-09-031-1/+1
|
* test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.Barry Warsaw2003-09-031-0/+7
| | | | Backport candidate.
* A fix for parsing parameters when there are semicolons inside theBarry Warsaw2003-09-031-1/+18
| | | | | | | | | | | quotes. Fixes SF bug #794466, with the essential patch provided by Stuart D. Gathman. Specifically, _parseparam(), _get_params_preserve(): Use the parsing function that takes quotes into account, as given (essentially) in the bug report's test program. Backport candidate.
* use the long names for re compilation options; this makes it easier toFred Drake2003-09-021-1/+1
| | | | figure out what the code is doing
* Modernize code a bit: use isinstance instead of type(); return True/FalseAndrew M. Kuchling2003-09-021-4/+7
|
* [Patch #759208] Fix has_key emulation to not raise KeyErrorAndrew M. Kuchling2003-09-021-1/+3
|
* Only apply case-insensitivity test on appropriate platforms.' test_filecmp.pyRaymond Hettinger2003-09-021-2/+6
|
* SF bug #453515: filecmp.dircmp case sensitivity bugRaymond Hettinger2003-09-022-8/+12
|
* SF 798269: bug fix for doctest (sf bug id: 798254Raymond Hettinger2003-09-021-2/+3
| | | | | | | | | | | (Contributed by Alexander Belopolsky.) Doctest would crash when encountering unbound methods: class A: def f(self): pass class C(A): g = A.f
* SF patch #736962: Port tests to unittest (Part 2)Raymond Hettinger2003-09-021-12/+90
| | | | | | | (Contributed by Walter Dörwald.) * Convert test_slice.py to unittest format * Expand the test coverage.
* SF patch #790443: add SafeConfigParser to __all__Raymond Hettinger2003-09-011-1/+1
| | | | (Contributed by George Yoshida.)
* SF bug #785222: zlib monotonic testRaymond Hettinger2003-08-311-11/+0
| | | | | | For smaller datasets, it is not always true the increasing the compression level always results in better compression. Removed the test which made this invalid assumption.
* SF patch #736962: Port tests to unittestRaymond Hettinger2003-08-305-33/+145
| | | | | | | | (Contributed by Walter Dörwald). * Convert three test modules to unittest format. * Expanded coverage in test_structseq.py. * Raymond added a new test in test_sets.py
* SF bug 797650: Infinite loop in textwrap.pyRaymond Hettinger2003-08-302-1/+11
| | | | | | When the indents were set to longer than the width and long word breaking was enabled, an infinite loop would result because the inner loop did not assure that at least one character was stripped off on every pass.
* Eliminate unnecessary eval() in testsRaymond Hettinger2003-08-301-19/+18
|
* SF bug #793826: using itertools.izip to mutate tuplesRaymond Hettinger2003-08-291-1/+32
| | | | Avoid Armin Rigo's dastardly exercise in re-entrancy.
* Rework previous fix slightly; the &0x20 test seems useless, and the ↵Andrew M. Kuchling2003-08-291-4/+2
| | | | isprint() check mustn't prevent the meta-bit check at the end
* Add tests for meta- bit setAndrew M. Kuchling2003-08-291-1/+4
|
* [Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave ↵Andrew M. Kuchling2003-08-291-0/+2
| | | | Cinege.
* Add simple unit test for ascii.unctrl() functionAndrew M. Kuchling2003-08-291-0/+13
|
* [Bug #776542] open_https() generates a bad Authorization header because it ↵Andrew M. Kuchling2003-08-291-1/+1
| | | | calls .putheader() wrongly. Reported by Steffen Ries.
* Make sure parentheses are escaped when used in the format string.Brett Cannon2003-08-292-1/+10
| | | | Closes bug #796149 . Will be backported.
* Support DBEnv.set_shm_key() to allow multi-threaded multi-processGregory P. Smith2003-08-281-0/+2
| | | | database environments to use shared memory on systems supporting it.
* Fix SF bug [ 788011 ] compiler.compileFile fails on csv.pyJeremy Hylton2003-08-281-1/+6
| | | | Bug fix candidate.
* Fix typo in docstring: The switch is '-x', not '-s'.Thomas Heller2003-08-271-1/+1
| | | | Will backport to 2.3 myself.
* Remove a typo. (Or is this some markup I don't understand? ;-)Thomas Heller2003-08-271-1/+1
|
* SF bug #795506: Wrong handling of string format code for float values.Raymond Hettinger2003-08-271-0/+1
| | | | | | Adding missing support for '%F'. Will backport to 2.3.1.
* test_largefile can leave its temp file open if one of many tests fail. OnJason Tishler2003-08-261-73/+81
| | | | | | | | | | | | | | | | | | | | platforms (e.g., Cygwin) that are "particular" about open files, this will cause other regression tests that use the same temp file to fail: $ ./python.exe -E -tt Lib/test/regrtest.py -l test_largefile test_mmap test_mutants test_largefile test test_largefile failed -- got -1794967295L, but expected 2500000001L test_mmap test test_mmap crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test' test_mutants test test_mutants crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test' This patch solves the problem by adding missing "try/finally" blocks. Note that the "large" size of this patch is due to many white space changes -- otherwise, the patch is small. I tested this patch under Red Hat Linux 8.0 too.
* Bump the version number for the standalone mimelib package.Barry Warsaw2003-08-191-1/+1
|
* test_rfc2231_no_language_or_charset_in_filename(),Barry Warsaw2003-08-191-0/+37
| | | | | | | | | test_rfc2231_no_language_or_charset_in_boundary(), test_rfc2231_no_language_or_charset_in_charset(): New tests for proper decoding of some RFC 2231 headers. Backport candidate (as was the Utils.py 1.25 change) to both Python 2.3.1 and 2.2.4 -- will do momentarily.
* get_param(): Update the docstring to explain how CHARSET and LANGUAGEBarry Warsaw2003-08-191-7/+12
| | | | | | | | | | can be None, and what to do in that situation. get_filename(), get_boundary(), get_content_charset(): Make sure these handle RFC 2231 headers without a CHARSET field. Backport candidate (as was the Utils.py 1.25 change) to both Python 2.3.1 and 2.2.4 -- will do momentarily.
* decode_rfc2231(): We need to urllib.unquote() the value even if theBarry Warsaw2003-08-191-1/+1
| | | | | | charset and language fields are not present, e.g. as in: title*0="This%20is%20encoded"
* Improvements to set.py:Raymond Hettinger2003-08-172-49/+190
| | | | | | | | | | | | | | | | | | | * Relaxed the argument restrictions for non-operator methods. They now allow any iterable instead of requiring a set. This makes the module a little easier to use and paves the way for an efficient C implementation which can take better advantage of iterable arguments while screening out immutables. * Deprecated Set.update() because it now duplicates Set.union_update() * Adapted the tests and docs to include the above changes. * Added more test coverage including testing identities and checking to make sure non-restartable generators work as arguments. Will backport to Py2.3.1 so that the interface remains consistent across versions. The deprecation of update() will be changed to a FutureWarning.
* Keep doctests in sync with the docs.Raymond Hettinger2003-08-161-5/+5
|
* Make sets.py compatible with Py2.2Raymond Hettinger2003-08-151-1/+19
|
* Make a copy of L before appending, so the global L remainsWalter Dörwald2003-08-151-4/+4
| | | | | | unchanged (and sys.gettotalrefcount() remains constant). Fix a few typos.
* Fix forMichael W. Hudson2003-08-151-0/+31
| | | | | | | | | [ 784825 ] fix obscure crash in descriptor handling Should be applied to release23-maint and in all likelyhood release22-maint, too. Certainly doesn't apply to release21-maint.
* IDLE didn't start correctly when Python was installed in "Program Files"Kurt B. Kaiser2003-08-142-2/+19
| | | | | | on W2K and XP. Python Bugs 780451, 784183 Backported to 2.2-maint
* [Patch #739124] Add use_default_colors() to curses moduleAndrew M. Kuchling2003-08-131-0/+3
|
* Add a unicode prefix to the characters in the UnicodeEncodeError andWalter Dörwald2003-08-121-9/+9
| | | | UnicodeTranslateError message.
* Enhance message for UnicodeEncodeError and UnicodeTranslateError.Walter Dörwald2003-08-121-3/+35
| | | | | If there is only one bad character it will now be printed in a form that is a valid Python string.
* Fix bug in test_bad_timezone where test was assuming locale knew of PDT.Brett Cannon2003-08-111-2/+3
|
* Comment typo fixesAndrew M. Kuchling2003-08-112-2/+2
|
* Unconditionally opening the temp file in text mode causes this test to failJason Tishler2003-08-111-2/+5
| | | | | | under Cygwin. The attached patch corrects this problem. I tested this patch under Red Hat Linux 8.0 too.
* Bug fix for #780461: 'sysu' gestalt selector is meaningless on MacOSX,Jack Jansen2003-08-111-1/+3
| | | | but attempting to get it resulted in a crash. Fixed. Backport candidate.
* Fix handling of bad locale setup where time.tzname[0] == time.tzname[1] andBrett Cannon2003-08-112-10/+39
| | | | | | time.daylight is true. Add an explicit test for this situation. Fixed some wording in docstrings.
* SF bug #778964: bad seed in python 2.3 randomRaymond Hettinger2003-08-092-1/+4
| | | | | | | The default seed is time.time(). Multiplied by 256 before truncating so that fractional seconds are used. This way, two successive calls to random.seed() are much more likely to produce different sequences.
* Add HIDDEN. Fixes #777664.Martin v. Löwis2003-08-091-0/+2
|
* SF patch #747364: BaseHTTPServer doesn't need StringIO intermediaryRaymond Hettinger2003-08-091-11/+1
| | | | (Contributed by Andrew Dalke.)
* IDLEfork Bug 782759Kurt B. Kaiser2003-08-091-4/+9
| | | | backported to 23-maint