summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* modify other occurrence of test_bad_addressAntoine Pitrou2008-12-151-1/+1
|
* try to fix failure in test_bad_address on some buildbotsAntoine Pitrou2008-12-141-1/+1
|
* Backport r67759 (fix io.IncrementalNewlineDecoder for UTF-16 et al.).Antoine Pitrou2008-12-141-41/+73
|
* Add file that was missed from r67750Nick Coghlan2008-12-141-0/+203
|
* Fix several issues relating to access to source code inside zipfiles. ↵Nick Coghlan2008-12-144-23/+86
| | | | Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
* Issue #4163: Use unicode-friendly word splitting in the textwrap functions ↵Antoine Pitrou2008-12-131-1/+9
| | | | when given an unicode string.
* Issue #4616: TarFile.utime(): Restore directory times on Windows.Lars Gustäbel2008-12-121-6/+3
|
* Issue #4084: Fix max, min, max_mag and min_mag Decimal methods toFacundo Batista2008-12-111-0/+17
| | | | | | give correct results in the case where one argument is a quiet NaN and the other is a finite number that requires rounding. Thanks Mark Dickinson.
* #4559: When a context manager's __exit__() method returns an object whoseAmaury Forgeot d'Arc2008-12-101-0/+30
| | | | | | | conversion to bool raises an exception, 'with' loses that exception. Reviewed by Jeffrey Yasskin. Already ported to 2.5, will port to 2.6 and 3.0
* Add simple unittests for RequestJeremy Hylton2008-12-091-1/+47
|
* Issue 4597: Fix several cases in EvalFrameEx where an exception could beJeffrey Yasskin2008-12-081-0/+14
| | | | "raised" without setting x, err, or why to let the eval loop know.
* Issue #4509: bugs in bytearray with exports (buffer protocol)Antoine Pitrou2008-12-061-0/+32
|
* Issue #4445: save 3 bytes (on average, on a typical machine) perMark Dickinson2008-12-051-2/+2
| | | | string allocation.
* #4529: fix parser's validation for try-except-finally statements.Georg Brandl2008-12-051-0/+10
|
* #4458: recognize "-" as an argument, not a malformed option in gnu_getopt().Georg Brandl2008-12-051-0/+5
|
* rename the new check_call_output to check_output. its less ugly.Gregory P. Smith2008-12-051-11/+11
|
* Adds a subprocess.check_call_output() function to return the output from aGregory P. Smith2008-12-041-0/+34
| | | | process on success or raise an exception on error.
* Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters toFred Drake2008-12-041-0/+26
| | | | | support unusual filenames (such as those containing semi-colons) in Content-Disposition headers.
* Issue #4384: Added logging integration with warnings module using ↵Vinay Sajip2008-12-031-2/+29
| | | | captureWarnings(). This change includes a NullHandler which does nothing; it will be of use to library developers who want to avoid the "No handlers could be found for logger XXX" message which can appear if the library user doesn't configure logging.
* Backport r67478Raymond Hettinger2008-12-031-0/+2
|
* Reflow long lines.Jeremy Hylton2008-11-291-5/+10
|
* Add unittests that verify documented behavior of public methods in TransportJeremy Hylton2008-11-241-1/+86
| | | | | | | | class. These methods can be overridden. The tests verify that the overridden methods are called, and that changes to the connection have a visible effect on the request.
* #4396 make the parser module correctly validate the with syntaxBenjamin Peterson2008-11-241-0/+4
|
* backport r67325: make FileIO.mode always contain 'b'Benjamin Peterson2008-11-222-9/+9
|
* don't segfault when \N escapes are used and unicodedata fails to loadBenjamin Peterson2008-11-211-2/+25
| | | | Fixes #4367
* Fixed issue #4233.Amaury Forgeot d'Arc2008-11-201-0/+24
| | | | | | | | | | Changed semantic of _fileio.FileIO's close() method on file objects with closefd=False. The file descriptor is still kept open but the file object behaves like a closed file. The FileIO object also got a new readonly attribute closefd. Approved by Barry Backport of r67106 from the py3k branch
* backport r67300Benjamin Peterson2008-11-201-0/+31
|
* oops! didn't mean to disable that testBenjamin Peterson2008-11-201-1/+1
|
* make sure that bytearray methods return a new bytearray even if there is no ↵Benjamin Peterson2008-11-191-0/+10
| | | | | | | change Fixes #4348 Reviewed by Brett
* #4317: Fix an Array Bounds Read in imageop.rgb2rgb8.Amaury Forgeot d'Arc2008-11-181-1/+2
| | | | Will backport to 2.4.
* when __getattr__ is a descriptor, call it correctly; fixes #4230Benjamin Peterson2008-11-171-0/+40
| | | | patch from Ziga Seilnacht
* check for assignment to __debug__ during AST generationBenjamin Peterson2008-11-081-10/+8
| | | | Also, give assignment to None a better error message
* move a FileIO test to test_fileioBenjamin Peterson2008-11-032-8/+9
|
* #4048 make the parser module accept relative imports as validBenjamin Peterson2008-11-031-0/+2
|
* make sure the parser flags and passed onto the compilerBenjamin Peterson2008-10-312-0/+14
| | | | | This fixes "from __future__ import unicode_literals" in an exec statment See #4225
* Issue #4237: io.FileIO() was raising invalid warnings caused by insufficient ↵Christian Heimes2008-10-301-0/+7
| | | | initialization of PyFileIOObject struct members.
* Issue #4176: Pickle would crash the interpreter when a __reduce__ functionAmaury Forgeot d'Arc2008-10-301-0/+23
| | | | | | | | | does not return an iterator for the 4th and 5th items. (sequence-like and mapping-like state) A list is not an iterator... Will backport to 2.6 and 2.5.
* Fixed a modulefinder crash on certain relative imports.Thomas Heller2008-10-301-0/+16
|
* Fix one of the tests: it relied on being present in an "output test" inArmin Rigo2008-10-281-7/+3
| | | | | | order to actually test what it was supposed to test, i.e. that the code in the __del__ method did not crash. Use instead the new helper test_support.captured_output().
* add forgotten test for r67030Benjamin Peterson2008-10-261-0/+21
|
* fix __future__ imports when multiple features are givenBenjamin Peterson2008-10-261-2/+6
|
* give a py3k warning when 'nonlocal' is used as a variable nameBenjamin Peterson2008-10-251-41/+23
|
* Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.Hirokazu Yamamoto2008-10-232-3/+3
|
* #4157 move two test functions out of platform.py.Amaury Forgeot d'Arc2008-10-211-0/+34
| | | | | | Turn them into unit tests, and correct an obvious typo: (("a", "b") ("c", "d") ("e", "f")) compiles even with the missing commas, but does not execute very well...
* make sure to call iteritems()Benjamin Peterson2008-10-211-3/+1
|
* give poplib a real test suiteBenjamin Peterson2008-10-111-23/+267
| | | | #4088 from Giampaolo Rodola'x
* #3935: properly support list subclasses in the C impl. of bisect.Georg Brandl2008-10-081-0/+11
| | | | Patch reviewed by Raymond.
* #4069: aSet.remove(otherSet) would always report the empty frozenset([]) as ↵Amaury Forgeot d'Arc2008-10-071-0/+11
| | | | | | | | the missing key. Now it correctly refers to the initial otherset. Reviewed by Raymond. Will backport to 2.6.
* more intensive test on dbm.Hirokazu Yamamoto2008-10-071-8/+10
|
* save/restore stdout/stderr instead of relying on __*__ versionsSkip Montanaro2008-10-071-2/+4
|