summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add test to explicit check the absence regression in subprocess (issue #15592).Andrew Svetlov2012-08-141-0/+12
| | | | | | | | Patch by Chris Jerdonek.
* | Merge universal newlines-related fixes (issue #13119)Antoine Pitrou2012-08-041-26/+28
|\ \ | |/
| * Fix universal newlines test to avoid the newline translation done by sys.stdout.Antoine Pitrou2012-08-041-26/+28
| |
* | Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-0/+4
| |
* | Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under ↵Antoine Pitrou2012-03-111-0/+67
|\ \ | |/ | | | | Windows when the child process has already exited.
| * Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under ↵Antoine Pitrou2012-03-111-0/+67
| | | | | | | | Windows when the child process has already exited.
* | Fix sporadic test_subprocess regression introduced by 834650d63130.Ross Lagerwall2012-02-221-2/+2
| |
* | Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-1/+1
|\ \ | |/
| * Fix bad inheritance in test_subprocess that led to a number of tests being ↵Georg Brandl2012-02-201-1/+1
| | | | | | | | executed twice.
* | Fix a typo.Ross Lagerwall2012-02-121-1/+1
| |
* | Attempt to speed up some subprocess tests (and hopefully keep them reliable).Ross Lagerwall2012-02-121-24/+21
| |
* | Fix a unittest error seen on NetBSD 5.Gregory P. Smith2012-01-221-2/+12
|\ \ | |/
| * Fix a unittest error seen on NetBSD 5.Gregory P. Smith2012-01-221-2/+12
| |
* | Fixes issue #8052: The posix subprocess module's close_fds behavior wasGregory P. Smith2012-01-211-0/+18
|\ \ | |/ | | | | | | | | | | | | suboptimal by closing all possible file descriptors rather than just the open ones in the child process before exec(). It now closes only the open fds when it is possible to safely determine what those are.
| * Fixes issue #8052: The posix subprocess module's close_fds behavior wasGregory P. Smith2012-01-211-0/+18
| | | | | | | | | | | | | | | | suboptimal by closing all possible file descriptors rather than just the open ones in the child process before exec(). It now closes only the open fds when it is possible to safely determine what those are.
* | merge 3.2Benjamin Peterson2011-12-101-6/+1
|\ \ | |/
| * we're always going to have gcBenjamin Peterson2011-12-101-6/+1
| |
* | merge 3.2Benjamin Peterson2011-12-101-11/+17
|\ \ | |/
| * you can't get resource.error if you can't import resourceBenjamin Peterson2011-12-101-11/+17
| |
* | Merge: Fix ResourceWarnings in test_subprocess.Nadeem Vawda2011-08-191-0/+4
|\ \ | |/
| * Fix ResourceWarnings in test_subprocess.Nadeem Vawda2011-08-191-0/+4
| |
* | Issue #12650: fix failures on some buildbots, when a subprocess takes a longCharles-François Natali2011-08-181-12/+0
|\ \ | |/ | | | | time to spawn.
| * Issue #12650: fix failures on some buildbots, when a subprocess takes a longCharles-François Natali2011-08-181-12/+0
| | | | | | | | time to spawn.
* | merge 3.2Benjamin Peterson2011-08-181-0/+58
|\ \ | |/
| * Issue #12650: Fix a race condition where a subprocess.Popen could leakCharles-François Natali2011-08-181-0/+58
| | | | | | | | resources (FD/zombie) when killed at the wrong time.
* | Issue #12607: Merge with 3.2.Ross Lagerwall2011-07-271-0/+58
|\ \ | |/
| * Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr isRoss Lagerwall2011-07-271-0/+58
| | | | | | | | given as a low fd, it gets overwritten.
* | Issue #12591: Improve support of "universal newlines" in the subprocessAntoine Pitrou2011-07-231-16/+48
|\ \ | |/ | | | | module: the piped streams can now be properly read from or written to.
| * Issue #12591: Improve support of "universal newlines" in the subprocessAntoine Pitrou2011-07-231-16/+48
| | | | | | | | | | | | | | module: the piped streams can now be properly read from or written to. (this was broken due to the 2.x to 3.x transition; communicate() support is still sketchy)
* | (merge 3.2) Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is ↵Victor Stinner2011-07-051-0/+2
|\ \ | |/ | | | | missing
| * Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missingVictor Stinner2011-07-051-0/+2
| |
* | (merge 3.2) Issue #12493: subprocess: communicate() handles EINTRVictor Stinner2011-07-051-0/+16
|\ \ | |/ | | | | | | subprocess.Popen.communicate() now also handles EINTR errors if the process has only one pipe.
| * Issue #12493: subprocess: communicate() handles EINTRVictor Stinner2011-07-051-0/+16
| | | | | | | | | | subprocess.Popen.communicate() now also handles EINTR errors if the process has only one pipe.
* | (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.
* | (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.
* | (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.
* | 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.
* | (Merge 3.2) Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes,Victor Stinner2011-06-011-0/+5
|\ \ | |/ | | | | | | | | | | | | | | the file descriptor of a pipe closed in the parent process is valid in the child process according to fstat(), but the mode of the file descriptor is invalid, and read or write raise an error. test.support.requires_mac_ver() is now a decorator, as suggested by Ezio Melotti, and its docstring is fixed (linux_version => mac_ver).
| * Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the fileVictor Stinner2011-06-011-0/+5
| | | | | | | | | | | | | | | | descriptor of a pipe closed in the parent process is valid in the child process according to fstat(), but the mode of the file descriptor is invalid, and read or write raise an error. Add also requires_mac_ver() decorator to test.support.
* | (Merge 3.2) Close #12085: Fix an attribute error in subprocess.Popen destructorVictor Stinner2011-05-311-0/+10
|\ \ | |/ | | | | | | if the constructor has failed, e.g. because of an undeclared keyword argument. Patch written by Oleg Oshmyan.
| * Close #12085: Fix an attribute error in subprocess.Popen destructor if theVictor Stinner2011-05-311-0/+10
| | | | | | | | | | constructor has failed, e.g. because of an undeclared keyword argument. Patch written by Oleg Oshmyan.
| * Fix ProcessTestCasePOSIXPurePython to test the module from import whenGregory P. Smith2011-05-281-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | _posixsubprocess doesn't exist rather than simply stubbing it out after the fact. This adds coverage for the RuntimeWarning as well as using the pure python _create_pipe instead of using _posixsubprocess.cloexec_pipe unintentionally with the pure python code. Ironically: I don't think any platform should ever actually _use_ the pure Python subprocess code on POSIX platforms anymore. This at least tests it properly in this stable branch. The pure python code for this is likely to be removed in 3.3.
| * merge - 7a3f3ad83676 Fixes Issue #12044.Gregory P. Smith2011-05-121-1/+2
| |
* | Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than theCharles-François Natali2011-05-291-7/+4
| | | | | | | | underlying OS pipe buffer size.
* | follow on to the last commit, remove the final POSIXPurePythonTestCaseGregory P. Smith2011-05-281-1/+0
| | | | | | | | | | reference. (the difference between running test_subprocess.py directly rather than via regrtest.py)