summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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)
* | The _posixsubprocess module is now required on POSIX.Gregory P. Smith2011-05-281-22/+0
| | | | | | | | | | | | | | | | | | Remove the pure Python POSIX subprocess implementation. If non-CPython VMs (are there any for 3.x yet?) were somehow depending on this, they already have the exact same set of problems with Python code being executed after os.fork() that _posixsubprocess was written to deal with. They should implement an equivalent outside of Python.
* | 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.
* | - Issue #12044: Fixed subprocess.Popen when used as a context manager toGregory P. Smith2011-05-121-1/+2
| | | | | | | | | | wait for the process to end when exiting the context to avoid unintentionally leaving zombie processes around.
* | Merge with 3.2Ross Lagerwall2011-04-051-0/+19
|\ \ | |/
| * Merge with 3.1Ross Lagerwall2011-04-051-0/+19
| |\
| | * Issue #10963: Ensure that subprocess.communicate() never raises EPIPE.Ross Lagerwall2011-04-051-0/+19
| | |
* | | Merge with 3.2Ross Lagerwall2011-03-261-0/+1
|\ \ \ | |/ /
| * | Merge with 3.1Ross Lagerwall2011-03-261-0/+1
| |\ \ | | |/
| | * Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.Ross Lagerwall2011-03-261-0/+1
| | | | | | | | | | | | Patch by Ben Hayden.
* | | Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-0/+16
|\ \ \ | |/ / | | | | | | unbuffered pipes, such that select() works properly on them.
| * | Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-0/+16
| |\ \ | | |/ | | | | | | unbuffered pipes, such that select() works properly on them.
| | * Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-0/+15
| | | | | | | | | | | | unbuffered pipes, such that select() works properly on them.
| | * Fix whitespace in test_subprocessAntoine Pitrou2011-03-151-1/+1
| | |
| * | revert the test_main() change from 08daf3ef6509 so that regrtest continues ↵Gregory P. Smith2011-03-151-1/+14
| | | | | | | | | | | | to run this properly.
| * | Add unittests demonstrating issue #11432.Gregory P. Smith2011-03-151-15/+21
| | |
* | | Bump up the subprocess timeouts even more. :(Reid Kleckner2011-03-161-4/+6
| | |
* | | Include the timeout value in TimeoutExpired.Reid Kleckner2011-03-161-1/+3
| | | | | | | | | | | | | | | This was the original intention, but it wasn't threaded all the way through due to 'endtime'. Also added a trivial assertion to get coverage of __str__.