summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Issue #10827: Changed the rules for 2-digit years. The time.asctimeAlexander Belopolsky2011-01-071-26/+36
| | | | | | | | function will now format any year when time.accept2dyear is false and will accept years >= 1000 otherwise. The year range accepted by time.mktime and time.strftime is still system dependent, but time.mktime will now accept full range supported by the OS. Conversion of 2-digit years to 4-digit is deprecated.
* Get --coverage to be an acceptable flag for test.regrtest again.Brett Cannon2011-01-061-2/+2
|
* Further simplify gettmarg()Alexander Belopolsky2011-01-061-0/+1
|
* Issue #3839: wsgiref should not override a Content-Length header set byAntoine Pitrou2011-01-062-5/+14
| | | | the application. Initial patch by Clovis Fabricio.
* Remove doc for nonexisting parameter.Georg Brandl2011-01-061-3/+1
|
* Issue #1677694: Refactor and improve test_timeout. Original patch byAntoine Pitrou2011-01-061-56/+54
| | | | Björn Lindqvist.
* Issue 10825: Minor updates to the test suite.Raymond Hettinger2011-01-064-10/+10
|
* Issue #10492: bdb.Bdb.run() only traces the execution of the codeVictor Stinner2011-01-061-0/+2
| | | | And not the compilation (if the input is a string).
* test_atexit: fix code saving/restoring stdout and stderrVictor Stinner2011-01-051-1/+2
| | | | That's why I prefer a single instruction per line :-)
* test_imaplib: reap_server() closes the server when doneVictor Stinner2011-01-051-0/+1
| | | | Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
* imaplib: IMAP4 constructor closes the socket on errorVictor Stinner2011-01-051-0/+11
| | | | | Fix a ResourceWarning(unclosed socket) if an exception is raised in the constructor after the creation of the socket. Patch written by Nadeem Vawda.
* - time.accept2dyear = True is now equivalent to time.accept2dyear = 1Alexander Belopolsky2011-01-051-1/+41
| | | | | | - removed unnecessary struct_time to tuple conversion - added more unit tests (See issue #10827 for discussion.)
* On Py3k, -tt and -3 are no-op and unsupported respectively.Georg Brandl2011-01-051-2/+2
|
* Issue #7995: When calling accept() on a socket with a timeout, the returnedAntoine Pitrou2011-01-052-1/+24
| | | | socket is now always non-blocking, regardless of the operating system.
* Update tests and whatsnew for the 'quiet' flagRaymond Hettinger2011-01-051-1/+1
|
* Issue #5485: Add tests for the UseForeignDTD method of expat parser objects.Antoine Pitrou2011-01-051-5/+54
| | | | Patch by Jean-Paul Calderone and Sandro Tosi.
* test_time: assertEquals => assertEqualVictor Stinner2011-01-051-1/+1
|
* test_threading: use Popen.communicate() instead of .wait()Victor Stinner2011-01-051-3/+3
| | | | | Popen.communicate() avoids deadlocks and close the pipes when done. This commit fixes a ResourceWarning(unclosed pipe).
* regrtest: close the new stdout and restore the original stdout at exitVictor Stinner2011-01-051-1/+10
| | | | Fix a ResourceWarning(unclosed file).
* Issue #10756: atexit normalizes the exception before displaying it.Victor Stinner2011-01-051-0/+8
|
* test_bytes: test PyBytes_FromFormat() using ctypesVictor Stinner2011-01-051-0/+21
|
* #10790: make append work when output codec is different from input codecR. David Murray2011-01-052-16/+14
| | | | | There's still a bug here (the encode call shouldn't use the 'errors' paramter), but I'll fix that later.
* test_unicode: use ctypes to test PyUnicode_FromFormat()Victor Stinner2011-01-051-6/+20
| | | | | Instead of _testcapi.format_unicode() because it has a limited API: it requires exactly one argument of type unicode.
* Fix test_time under WindowsAntoine Pitrou2011-01-041-1/+1
|
* In subprocess, wrap pipe fds before launching the child. Hopefully thisAntoine Pitrou2011-01-041-7/+21
| | | | will fix intermittent failures on some buildbots (issue #8458).
* Fix the new bug introduced in the r87710 fix for issue 6643. DummyThreadGregory P. Smith2011-01-041-4/+13
| | | | | | | deletes its _block attribute, deal with that. This prevents an uncaught exception in a thread during test_thread. This refactors a bit to better match what I did in the r87727 backport to 2.7.
* Fix exception catching.Georg Brandl2011-01-041-1/+1
|
* Issue #8013: Fix time.ctime test failure on 32-bit platforms.Alexander Belopolsky2011-01-041-1/+1
|
* Issue #8013: time.asctime and time.ctime no longer call system asctimeAlexander Belopolsky2011-01-041-17/+16
| | | | | | | and ctime functions. The year range for time.asctime is now 1900 through maxint. The range for time.ctime is the same as for time.localtime. The string produced by these functions is longer than 24 characters when year is greater than 9999.
* Issue #10819: SocketIO.name property returns -1 when its closed, instead ofVictor Stinner2011-01-042-1/+10
| | | | raising a ValueError, to fix repr().
* Issue #8650: zlib.compress() and zlib.decompress() raise an OverflowError ifVictor Stinner2011-01-041-1/+11
| | | | | the input buffer length doesn't fit into an unsigned int (length bigger than 2^32-1 bytes).
* Issue #8651: PyArg_Parse*() functions raise an OverflowError if the fileVictor Stinner2011-01-041-0/+18
| | | | | doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length bigger than 2^31-1).
* Issue #10267: Fix refleak in test_ttk_guionly. Patch by Hirokazu Yamamoto.Antoine Pitrou2011-01-041-2/+6
|
* test_httplib: fix a DeprecationWarning, assertEquals=>assertEqualVictor Stinner2011-01-041-1/+1
|
* test_array: fix the DeprecationWarning('object.__init__() takes no parameters')Victor Stinner2011-01-041-1/+1
|
* fix test_unittest: ignore DeprecationWarning on assertDictContainsSubset()Victor Stinner2011-01-032-24/+30
|
* Un-complicate some codeAntoine Pitrou2011-01-031-15/+5
|
* Add some more outputAntoine Pitrou2011-01-031-0/+3
|
* Temporary debug output for intermittent failures in test_subprocessAntoine Pitrou2011-01-031-0/+4
|
* Add a subprocess test of remapping standard file descriptors (issue #1187).Antoine Pitrou2011-01-031-0/+48
|
* issue6643 - Two locks held within the threading module on each thread instanceGregory P. Smith2011-01-032-4/+151
| | | | | needed to be reinitialized after fork(). Adds tests to confirm that they are and that a potential deadlock and crasher bug are fixed (platform dependant).
* Mention --randseed in option listAntoine Pitrou2011-01-031-0/+1
|
* Issue #6293: Have regrtest.py echo back sys.flags. This is done by defaultAntoine Pitrou2011-01-031-3/+8
| | | | | in whole runs and enabled selectively using `--header` when running an explicit list of tests. Original patch by Collin Winter.
* Issue #10806, issue #9905: Fix subprocess pipes when some of the standardAntoine Pitrou2011-01-032-25/+79
| | | | | file descriptors (0, 1, 2) are closed in the parent process. Initial patch by Ross Lagerwall.
* Fix test_site for systems without unsetenv. Reported by Zsolt Cserna.Éric Araujo2011-01-031-2/+6
|
* Enable unittest.TestCase to be instantiated without providing a method name.Michael Foord2011-01-032-3/+18
| | | | Changed unittestgui to show number of discovered tests in the status bar.
* test_subprocess: close pipes at the end of test_pipe_cloexec_real_tools()Victor Stinner2011-01-031-0/+3
|
* pydoc: close the DocServer when doneVictor Stinner2011-01-031-0/+2
|
* Issue #10816: multiprocessing.SocketClient() closes the socket on errorVictor Stinner2011-01-031-15/+14
| | | | Use a context manager to close immediatly the socket on error.
* test_socket: use context managers to close directly the socketVictor Stinner2011-01-031-34/+38
| | | | Fix ResourceWarning(unclosed socket) warnings. Patch written by Nadeem Vawda.