summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add entry for Barrier objects.Raymond Hettinger2011-01-111-3/+2
|
* Typo.Eric Smith2011-01-111-1/+1
|
* Issue 10556: test_zipimport_support implicitly imports too many modules ↵Nick Coghlan2011-01-112-6/+23
| | | | (including _ssl) to safely clobber sys.modules after each test
* This should fix mktime test on WindowsAlexander Belopolsky2011-01-111-1/+2
|
* Make mktime test more robust.Alexander Belopolsky2011-01-111-3/+7
|
* Issue #1726687: time.mktime() will now correctly compute value oneAlexander Belopolsky2011-01-111-0/+13
| | | | | second before epoch. Original patch by Peter Wang, reported by Martin Blais.
* Issue #10872: The repr() of TextIOWrapper objects now includes the modeAntoine Pitrou2011-01-092-4/+14
| | | | | | if available. (at Georg's request)
* #10874: test_urllib2 shouldn't use `is` operator for comparing stringsŁukasz Langa2011-01-091-1/+1
| | | | Patch by Adreas Stührk.
* Add missing line.Georg Brandl2011-01-091-0/+1
|
* #10869: do not visit root node twice in ast.increment_lineno().Georg Brandl2011-01-092-5/+10
|
* #5871: protect against header injection attacks.R. David Murray2011-01-092-1/+21
| | | | | | | | | | | | This makes Header.encode throw a HeaderParseError if it winds up formatting a header such that a continuation line has no leading whitespace and looks like a header. Since Header accepts values containing newlines and preserves them (and this is by design), without this fix any program that took user input (say, a subject in a web form) and passed it to the email package as a header was vulnerable to header injection attacks. (As far as we know this has never been exploited.) Thanks to Jakub Wilk for reporting this vulnerability.
* Add EHOSTUNREACH ('No route to host') to the errnos trapped by ↵Antoine Pitrou2011-01-081-0/+1
| | | | transient_internet().
* Fix test_ssl after r87849Antoine Pitrou2011-01-082-32/+128
|
* Issue #10859: Make `contextlib.GeneratorContextManager` officiallyAntoine Pitrou2011-01-082-8/+8
| | | | private by renaming it to `_GeneratorContextManager`.
* Issue #10042: Fixed the total_ordering decorator to handle cross-typeRaymond Hettinger2011-01-082-8/+32
| | | | comparisons that could lead to infinite recursion.
* test_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.deVictor Stinner2011-01-081-2/+2
|
* Issue #1777412: Remove all limits on tm_year from time.strftime()Victor Stinner2011-01-081-17/+19
| | | | The buildbots will tell us which platform does support or not negative years.
* Issue #1777412: fix test_time for Mac OS X and OpenIndianaVictor Stinner2011-01-081-9/+14
|
* Issue #1777412: test large years value for strftime('%Y')Victor Stinner2011-01-081-5/+10
|
* Issue #1777412: strftime() accepts year >= 1 instead of year >= 1900Victor Stinner2011-01-081-30/+70
| | | | | * With Visual Studio, year have to be in [1; 9999] * Add more tests on the year field
* Fixed error handling branches. ThanksAlexander Belopolsky2011-01-081-1/+12
| | | | Victor Stinner for pointing this out.
* Issue #1777412: extended year range of strftime down to 1000.Alexander Belopolsky2011-01-082-7/+7
|
* #10686: recode non-ASCII headers to 'unknown-8bit' instead of ?s.R. David Murray2011-01-074-55/+89
| | | | | | This applies only when generating strings from non-RFC compliant binary input; it makes the existing recoding behavior more consistent (ie: now no data is lost when recoding).
* Fix formatting of values with embedded newlines when rfc2047 encodingR. David Murray2011-01-072-3/+21
| | | | | | | | | Before this patch if a value being encoded had an embedded newline, the line following the newline would have no leading whitespace, and the whitespace it did have was encoded into the word. Now the existing whitespace gets turned into a blank, the way it does in other header reformatting, and the _continuation_ws gets added at the beginning of the encoded line.
* 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.