summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * 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.
| | * 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-4/+1
|\ \ \ | |/ /
| * | fix test for subprocess (#16644)Andrew Svetlov2012-12-261-4/+1
| |\ \ | | |/
| | * fix test for subprocess (#16644)Andrew Svetlov2012-12-261-2/+1
| | |
* | | Get rig of EnvironmentError (#16705)Andrew Svetlov2012-12-171-4/+3
| | |
* | | Refactor test_preexec_errpipe to not create an uncollectable reference cycle.Gregory P. Smith2012-11-111-20/+19
|\ \ \ | |/ /
| * | Refactor test_preexec_errpipe to not create an uncollectable reference cycle.Gregory P. Smith2012-11-111-19/+18
| |\ \ | | |/
| | * 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/+39
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | 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 #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 #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.
* | | Raise our own SubprocessError rather than a RuntimeError in when dealing withGregory P. Smith2012-11-111-3/+3
|/ / | | | | | | odd rare errors coming from the subprocess module.
* | 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 #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.
| * 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.
* | Issue #16170: Remove Linux skip from test_subprocess's test_executable test.Chris Jerdonek2012-10-091-5/+8
| |
* | Issue #16115: Skip a newly added subprocess.Popen() test on Linux.Chris Jerdonek2012-10-091-0/+4
| |
* | Issue #16115: Improve testing of the executable argument to subprocess.Popen().Chris Jerdonek2012-10-081-10/+27
| |
* | revert accidental inclusion of subprocess testsAndrew Svetlov2012-10-061-22/+0
|\ \ | |/
| * 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 #16025: Minor corrections to the zipfile documentation.Andrew Svetlov2012-10-061-0/+22
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #16115: Add test for check that executable arg to Popen() takes ↵Andrew Svetlov2012-10-051-0/+10
| | | | | | | | precedence over args[0] arg\n \n Patch by Kushal Das
* | Issue #15533: Merge update from 3.2.Chris Jerdonek2012-09-301-0/+2
|\ \ | |/
| * Issue #15533: Skip test_cwd_with_relative_*() tests on Windows pending ↵Chris Jerdonek2012-09-301-0/+2
| | | | | | | | resolution of issue.
* | Issue #15533: Merge fix from 3.2.Chris Jerdonek2012-09-301-29/+94
|\ \ | |/
| * 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/+32
|\ \ | |/ | | | | | | | | for certain locales (utf-16 and utf-32 family). Patch by Chris Jerdonek.
| * 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.
* | Brush subprocess tests a bit.Andrew Svetlov2012-08-191-20/+21
| |
* | Fix subprocess test broken on WindowsAndrew Svetlov2012-08-161-10/+11
| |
* | Add yet another test for subprocess.Popen.communicateAndrew Svetlov2012-08-151-0/+28
| |
* | Issue #15592. Fix regression: subprocess.communicate() breaks on no input ↵Andrew Svetlov2012-08-141-2/+12
|\ \ | |/ | | | | | | | | with universal newlines true. 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.
* | 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.