summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #16903: Popen.communicate() on Unix now accepts strings whenSerhiy Storchaka2013-02-041-2/+29
| | | | universal_newlines is true as on Windows.
* Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()Charles-François Natali2013-01-121-0/+2
| | | | returns ESRCH for a zombie process, which is not POSIX-compliant.
* fix test for subprocess (#16644)Andrew Svetlov2012-12-261-2/+1
|
* Refactor test_preexec_errpipe to not create an uncollectable reference cycle.Gregory P. Smith2012-11-111-19/+18
|
* Fixes issue #16140: The subprocess module no longer double closes itsGregory P. Smith2012-11-111-0/+38
| | | | | | | | | child subprocess.PIPE parent file descriptors on child error prior to exec(). This would lead to race conditions in multithreaded programs where another thread opened a file reusing the fd which was then closed out from beneath it by the errant second close.
* Fixes issue #16327: The subprocess module no longer leaks file descriptorsGregory P. Smith2012-11-111-0/+33
| | | | used for stdin/stdout/stderr pipes to the child when fork() fails.
* Fixes Issue #16114: The subprocess module no longer provides aGregory P. Smith2012-10-101-7/+40
| | | | | | | | | | | | | | | misleading error message stating that args[0] did not exist when either the cwd or executable keyword arguments specified a path that did not exist. It now keeps track of if the child got as far as preexec and reports it if not back to the parent via a special "noexec" error message value in the error pipe so that the cwd can be blamed for a failed chdir instead of the exec of the executable being blamed instead. The executable is also always reported accurately when exec fails. Unittests enhanced to cover these cases.
* revert accidental inclusion of subprocess testsAndrew Svetlov2012-10-061-22/+0
|
* Issue #16025: Minor corrections to the zipfile documentation.Andrew Svetlov2012-10-061-0/+22
| | | | Patch by Serhiy Storchaka.
* Issue #15533: Skip test_cwd_with_relative_*() tests on Windows pending ↵Chris Jerdonek2012-09-301-0/+2
| | | | resolution of issue.
* Issue #15533: Clarify docs and add tests for subprocess.Popen()'s cwd argument.Chris Jerdonek2012-09-301-29/+94
|
* Issue #15595: Fix subprocess.Popen(universal_newlines=True)Andrew Svetlov2012-08-191-0/+33
| | | | | | for certain locales (utf-16 and utf-32 family). Patch by Chris Jerdonek.
* Add test to explicit check the absence regression in subprocess (issue #15592).Andrew Svetlov2012-08-141-0/+12
| | | | Patch by Chris Jerdonek.
* Fix universal newlines test to avoid the newline translation done by sys.stdout.Antoine Pitrou2012-08-041-26/+28
|
* 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 bad inheritance in test_subprocess that led to a number of tests being ↵Georg Brandl2012-02-201-1/+1
| | | | executed twice.
* 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.
* we're always going to have gcBenjamin Peterson2011-12-101-6/+1
|
* you can't get resource.error if you can't import resourceBenjamin Peterson2011-12-101-11/+17
|
* 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 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: 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. (this was broken due to the 2.x to 3.x transition; communicate() support is still sketchy)
* Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missingVictor Stinner2011-07-051-0/+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 #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: 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: 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.
* Close #12383: Fix subprocess module with env={}: don't copy the environmentVictor Stinner2011-06-211-7/+16
| | | | variables, start with an empty environment.
* 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.
* 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
|
* 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.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/+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
| |
* | merge 141bbcb19c06Gregory P. Smith2011-03-151-2/+5
|\ \ | |/
| * Fix the @test_NNNN_tmp file terds being left in whatever your $PWD wasGregory P. Smith2011-03-151-2/+5
| | | | | | | | when test_subprocess was run.
* | Fix whitespaceR David Murray2011-03-141-1/+1
| |
* | Merge fix for #11490 from 3.1.R David Murray2011-03-141-1/+2
|\ \ | |/
| * #11490: EACCES can also mean command not foundR David Murray2011-03-141-1/+2
| |
| * Merged revisions 87695 via svnmerge fromAntoine Pitrou2011-01-031-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87695 | antoine.pitrou | 2011-01-03 19:23:55 +0100 (lun., 03 janv. 2011) | 5 lines Issue #10806, issue #9905: Fix subprocess pipes when some of the standard file descriptors (0, 1, 2) are closed in the parent process. Initial patch by Ross Lagerwall. ........