summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* merge #11584: make Header and make_header handle binary unknown-8bit inputR David Murray2011-06-181-0/+15
|\
* \ merge #11584: make decode_header handle Header objects correctlyR David Murray2011-06-181-2/+2
|\ \ | |/ | | | | | | This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug incorrectly.
* | merge #11700: proxy object close methods can now be called multiple timesR David Murray2011-06-181-1/+12
|\ \ | |/
| * #11700: proxy object close methods can now be called multiple timesR David Murray2011-06-181-1/+12
| | | | | | | | This makes them work like the close provided by regular file objects.
* | merge #11767: use context manager to close file in __getitem__ to prevent FD ↵R David Murray2011-06-171-1/+32
|\ \ | |/ | | | | leak
| * #11767: use context manager to close file in __getitem__ to prevent FD leakR David Murray2011-06-171-1/+32
| | | | | | | | | | | | | | | | All of the other methods in mailbox that create message objects take care to close the file descriptors they use, so it seems to make sense to have __getitem__ do so as well. Patch by Filip Gruszczyński.
* | (Merge 3.2) Issue #10883: test_urllib2net closes socket explicitlyVictor Stinner2011-06-171-0/+8
|\ \ | |/
| * Issue #10883: test_urllib2net closes socket explicitlyVictor Stinner2011-06-171-0/+8
| |
* | (Merge 3.2) Issue #12133: fix a ResourceWarning in urllib.requestVictor Stinner2011-06-171-0/+3
|\ \ | |/ | | | | | | | | AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
| * Issue #12133: fix a ResourceWarning in urllib.requestVictor Stinner2011-06-171-0/+3
| | | | | | | | | | | | AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
| * branch merge?Brian Curtin2011-06-135-40/+146
| |\
* | \ branch mergeBrian Curtin2011-06-132-1/+46
|\ \ \
| * \ \ Merge from 3.2 for Issue #12084.Brian Curtin2011-06-132-1/+46
| |\ \ \ | | |/ /
| | * | Fix #12084. os.stat on Windows wasn't working properly with relative symlinks.Brian Curtin2011-06-132-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use of DeviceIoControl to obtain the symlink path via the reparse tag was removed. The code now uses GetFinalPathNameByHandle in the case of a symbolic link and works properly given the added test which creates a symbolic link and calls os.stat on it from multiple locations. Victor Stinner also noticed an issue with os.lstat following the os.stat code path when being passed bytes. The posix_lstat function was adjusted to properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
* | | | Issue #12316: Fix sigwait() test using threadsVictor Stinner2011-06-131-29/+41
| | | | | | | | | | | | | | | | | | | | Spawn a new process instead of using fork(). Patch written by Charles-François Natali.
* | | | allow __dir__ to return any sequenceBenjamin Peterson2011-06-111-1/+9
| | | |
* | | | merge 3.2 (#9284)Benjamin Peterson2011-06-111-0/+17
|\ \ \ \ | | |_|/ | |/| |
| * | | allow "fake" filenames in findsource (closes #9284)Benjamin Peterson2011-06-111-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | This allows findsource() to work in doctests. A patch from Dirkjan Ochtman.
* | | | Issue #12287: In ossaudiodev, check that the device isn't closed in severalCharles-François Natali2011-06-111-0/+16
| | | | | | | | | | | | | | | | methods.
* | | | merge 3.2 (#12009)Benjamin Peterson2011-06-101-39/+92
|\ \ \ \ | |/ / /
| * | | merge 3.1 (#12009)Benjamin Peterson2011-06-101-39/+92
| |\ \ \
| | * | | fix regression in netrc comment handling (closes #12009)Benjamin Peterson2011-06-101-39/+92
| | | | |
| | * | | Issue #10801: Fix test_unicode_filenames() of test_zipfileVictor Stinner2011-06-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just try to open files from the ZIP for reading, don't extract them to avoid UnicodeEncodeError if the filename is not encodable to the filesystem encoding (e.g. ASCII locale encoding).
* | | | | Issue #8407: skip sigwait() tests if pthread_sigmask() is missingVictor Stinner2011-06-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The new tests now requires pthread_sigmask(). Skip the test if the function is missing, e.g. if Python is compiled without threads.
* | | | | test_platform: ignore DeprecationWarning on popen() testVictor Stinner2011-06-101-15/+20
| | | | |
* | | | | Issue #8407: write error message on sigwait test failureVictor Stinner2011-06-101-3/+4
| | | | |
* | | | | Issue #8407: Make signal.sigwait() tests more reliableVictor Stinner2011-06-101-14/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Block the signal before calling sigwait(). Use os.fork() to ensure that we have only one thread. Initial patch written by Charles-François Natali.
* | | | | Issue #9344: Add os.getgrouplist().Ross Lagerwall2011-06-101-0/+15
| | | | |
* | | | | Issue #8407: signal.sigwait() releases the GILVictor Stinner2011-06-091-0/+19
| | | | | | | | | | | | | | | | | | | | Initial patch by Charles-François Natali.
* | | | | Merge #10694: zipfile now ignores garbage at the end of a zipfile.R David Murray2011-06-091-0/+18
|\ \ \ \ \ | |/ / / /
| * | | | #10694: zipfile now ignores garbage at the end of a zipfile.R David Murray2011-06-091-0/+18
| | | | | | | | | | | | | | | | | | | | Original fix by 'rep', final patch (with tests) by Xuanji Li.
* | | | | merge #12283: Fixed regression in smtplib quoting of leading dots in DATA.R David Murray2011-06-091-0/+15
|\ \ \ \ \ | |/ / / /
| * | | | #12283: Fixed regression in smtplib quoting of leading dots in DATA.R David Murray2011-06-091-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I unfortunately introduced the regression when I refactored the code, and there were no tests of quoting so it wasn't caught. Now there is one.
* | | | | #10424: argument names are now included in the missing argument messageR David Murray2011-06-091-0/+61
| | | | | | | | | | | | | | | | | | | | Fix and initial test patch by Michele Orrù.
* | | | | Merged fix for issue #12168 from 3.2.Vinay Sajip2011-06-091-2/+6
|\ \ \ \ \ | |/ / / /
* | | | | Issue #12021: Make mmap's read() method argument optional. Patch by PetriCharles-François Natali2011-06-081-0/+29
| | | | | | | | | | | | | | | | | | | | Lehtinen.
* | | | | Issue #9205: concurrent.futures.ProcessPoolExecutor now detects killedAntoine Pitrou2011-06-081-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | children and raises BrokenProcessPool in such a situation. Previously it would reliably freeze/deadlock.
* | | | | (Merge 3.2) test.support: don't catch OSError when can_symlink() removes theVictor Stinner2011-06-071-1/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | temporary symbolic link.
| * | | | test.support: can_symlink() removes the temporary symbolic linkVictor Stinner2011-06-071-1/+4
| | |_|/ | |/| |
* | | | Use a sleep for test_subprocess timeout testVictor Stinner2011-06-061-2/+3
| | | | | | | | | | | | | | | | instead of an active loop (while True: pass) to limit race conditions.
* | | | Issue #12196: Make os.pipe2() flags argument mandatory.Charles-François Natali2011-06-061-2/+2
| | | |
* | | | Issue #12040: Expose a new attribute `sentinel` on instances ofAntoine Pitrou2011-06-061-0/+37
| |_|/ |/| | | | | | | | | | | :class:`multiprocessing.Process`. Also, fix Process.join() to not use polling anymore, when given a timeout.
* | | Issue #12250: regrtest --timeout displays a warning instead of failing with anVictor Stinner2011-06-061-6/+7
| | | | | | | | | | | | | | | error if faulthandler.dump_tracebacks_later() is missing (e.g. if Python is compiled without threads).
* | | Issue #12250: modify "make buildbottest" command line instead of TESTOPTSVictor Stinner2011-06-061-3/+3
| | | | | | | | | | | | | | | | | | | | | Add TESTTIMEOUT variable (default: 3600 seconds). Use TESTTIMEOUT=0 to disable the timeout. *** fix
* | | greatly improve argument parsing error messages (closes #12265)Benjamin Peterson2011-06-062-11/+73
| | |
* | | Closes issue #11557: removal of non-idiomatic code in test_logging.Vinay Sajip2011-06-051-31/+25
| | |
* | | merge headsBenjamin Peterson2011-06-051-0/+13
|\ \ \
| * | | Issue #12080: Fix a performance issue in Decimal._power_exact that causes ↵Mark Dickinson2011-06-041-0/+13
| | | | | | | | | | | | | | | | some corner-case Decimal.__pow__ calls to take an unreasonably long time.
* | | | only clear the parser error if it's set (closes #12264)Benjamin Peterson2011-06-051-0/+8
|/ / /
* | | (Merge 3.2) Issue #12016: Add test_errorhandle() to TestBase_Mapping ofVictor Stinner2011-06-031-3/+33
|\ \ \ | |/ / | | | | | | | | | test_multibytecodec_support. Improve also error message of the test_errorhandle() of TestBase.