summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* (merge 3.2) Issue #12400: regrtest -W doesn't rerun the tests twice anymore,Victor Stinner2011-06-292-11/+26
|\ | | | | | | | | but captures the output and displays it on failure instead. regrtest -v doesn't print the error twice anymore if there is only one error.
| * Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but capturesVictor Stinner2011-06-291-11/+25
| | | | | | | | | | the output and displays it on failure instead. regrtest -v doesn't print the error twice anymore if there is only one error.
* | Issue #12303: run sig*wait*() tests in a subprocesssVictor Stinner2011-06-291-56/+81
| | | | | | | | | | | | | | ... instead of using fork(): sig*wait*() functions behave differently (not correctly) after a fork, especially on FreeBSD 6. Skip also test_sigtimedwait_poll() on FreeBSD 6 because of a kernel bug.
* | Issue #8746: Correct faulty configure checks so that os.chflags() andNed Deily2011-06-281-12/+47
|\ \ | |/ | | | | | | | | | | os.lchflags() are once again built on systems that support these functions (*BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED). Also add additional tests for os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
| * Issue #8746: Correct faulty configure checks so that os.chflags() andNed Deily2011-06-281-12/+47
| | | | | | | | | | | | | | os.lchflags() are once again built on systems that support these functions (*BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED). Also add additional tests for os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
* | merge 3.2Benjamin Peterson2011-06-271-1/+1
|\ \ | |/
| * fix wsBenjamin Peterson2011-06-271-1/+1
| |
* | merge 3.2 (#11302)Benjamin Peterson2011-06-271-0/+180
|\ \ | |/
| * add more ast tests (closes #11302)Benjamin Peterson2011-06-271-0/+180
| | | | | | | | A patch from Vincent Legoll.
* | don't memoize objects that are their own copies (closes #12422)Benjamin Peterson2011-06-271-2/+17
| | | | | | | | Patch mostly by Alex Gaynor.
* | Closes #12419: Added ident to SysLogHandler.Vinay Sajip2011-06-271-0/+5
| |
* | Issue 12139: add CCC command support to FTP_TLS class to revert the SSL ↵Giampaolo Rodola'2011-06-271-2/+20
| | | | | | | | connection back to clear-text.
* | Issue #4608: urllib.request.urlopen does not return an iterable objectRaymond Hettinger2011-06-261-2/+3
|\ \ | |/
| * Issue #4608: urllib.request.urlopen does not return an iterable objectRaymond Hettinger2011-06-261-2/+3
| |
* | map cells to arg slots at code creation time (closes #12399)Benjamin Peterson2011-06-261-1/+1
| | | | | | | | This removes nested loops in PyEval_EvalCodeEx.
* | Issue 11758: increase xml.dom.minidom test coverage (contributed by mdorn, ↵Raymond Hettinger2011-06-251-2/+40
| | | | | | | | reviewed by Sandro Tosi).
* | Fix test_signal on Windows after #12303.Ross Lagerwall2011-06-251-6/+6
| |
* | Issue #12408: Merge.Mark Dickinson2011-06-251-1/+1
|\ \ | |/
| * Issue #12408: Fix relative import in test_future5.py. Thanks Cesare Di Mauro.Mark Dickinson2011-06-251-1/+1
| |
* | Issue #12303: Add sigwaitinfo() and sigtimedwait() to the signal module.Ross Lagerwall2011-06-251-16/+83
| |
* | Issue #12392: fix thread initialization on FreeBSD 6Victor Stinner2011-06-241-0/+25
| | | | | | | | | | | | | | | | On FreeBSD6, pthread_kill() doesn't work on the main thread before the creation of the first thread. Create therefore a dummy thread (no-op) a startup to initialize the pthread library. Add also a test for this use case, test written by Charles-François Natali.
* | Merge #10206: add test for previously fixed bug.R David Murray2011-06-241-0/+7
|\ \ | |/
| * #10206: add test for previously fixed bug.R David Murray2011-06-241-0/+7
| | | | | | | | Patch by Francisco Martín Brugué.
| * Issue #11223: skip also test_rlock_acquire_interruption() on FreeBSD6Victor Stinner2011-06-231-4/+7
| |
| * Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6Victor Stinner2011-06-231-0/+5
| | | | | | | | | | | | Locks are implemented using a mutex and a condition variable of the pthread library on FreeBSD6. POSIX condition variables cannot be interrupted by signals (see pthread_cond_wait manual page).
* | give the names of missing positional or keyword-only arguments (closes #12356)Benjamin Peterson2011-06-241-59/+48
| |
* | (merge 3.2) Issue #12383: skip test_empty_env() of subprocess on WindowsVictor Stinner2011-06-221-0/+4
|\ \ | |/ | | | | | | Cannot test an empty environment on Windows: Windows requires at least the SYSTEMROOT environment variable to start Python.
| * Issue #12383: skip test_empty_env() of subprocess on WindowsVictor Stinner2011-06-221-0/+4
| | | | | | | | | | Cannot test an empty environment on Windows: Windows requires at least the SYSTEMROOT environment variable to start Python.
* | Issue #12363: improve siginterrupt() testsVictor Stinner2011-06-221-0/+7
| | | | | | | | | | Add a basic synchronization code between the child and the parent processes: the child writes "ready" to stdout.
* | (merge 3.2) Issue #12383: fix test_empty_env() of subprocess on Mac OS XVictor Stinner2011-06-221-2/+6
|\ \ | |/ | | | | | | | | Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix also the test on the Py_ENABLE_SHARED config varible: test that the variable is present, don't check it's value.
| * Issue #12383: fix test_empty_env() of subprocess on Mac OS XVictor Stinner2011-06-221-2/+6
| | | | | | | | | | | | Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix also the test on the Py_ENABLE_SHARED config varible: test that the variable is present, don't check it's value.
* | #1874: detect invalid multipart CTE and report it as a defect.R David Murray2011-06-221-0/+45
| |
* | (merge 3.2) Issue #12383: skip test_empty_env() if compiled is compiled inVictor Stinner2011-06-211-2/+5
|\ \ | |/ | | | | | | | | | | shared mode Try also to get more informations about the Mac OS X failure: display the keys of the environment, instead of just the number of variables.
| * Issue #12383: skip test_empty_env() if compiled is compiled in shared modeVictor Stinner2011-06-211-2/+5
| | | | | | | | | | Try also to get more informations about the Mac OS X failure: display the keys of the environment, instead of just the number of variables.
* | (merge 3.2) Close #12383: Fix subprocess module with env={}: don't copy theVictor Stinner2011-06-211-7/+16
|\ \ | |/ | | | | environment variables, start with an empty environment.
| * Close #12383: Fix subprocess module with env={}: don't copy the environmentVictor Stinner2011-06-211-7/+16
| | | | | | | | variables, start with an empty environment.
* | Close #12363: fix a race condition in siginterrupt() testsVictor Stinner2011-06-201-74/+50
| | | | | | | | | | | | | | | | | | | | | | | | The previous tests used time.sleep() to synchronize two processes. If the host was too slow, the test could fail. The new tests only use one process, but they use a subprocess to: - have only one thread - have a timeout on the blocking read (select cannot be used in the test, select always fail with EINTR, the kernel doesn't restart it) - not touch signal handling of the parent process
* | (merge 3.2) Issue #12285: multiprocessing.Pool() raises a ValueError if theVictor Stinner2011-06-201-0/+3
|\ \ | |/ | | | | number of processes if negative or null.
| * Issue #12285: multiprocessing.Pool() raises a ValueError if the number ofVictor Stinner2011-06-201-0/+3
| | | | | | | | processes if negative or null.
* | use a invalid name for the __class__ closure for super() (closes #12370)Benjamin Peterson2011-06-201-0/+10
| | | | | | | | | | This prevents the assignment of __class__ in the class body from breaking super. (Although a determined person could do locals()["@__class__"] = 4)
* | merge 3.2Benjamin Peterson2011-06-191-7/+7
|\ \ | |/
| * fix uglyNamingConventionBenjamin Peterson2011-06-191-7/+7
| |
* | 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
| |