summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #6135: Adds encoding and errors parameters to subprocessSteve Dower2016-09-071-18/+41
|
* Adds test.support.PGO and skips tests that are not useful for PGO.Steve Dower2016-09-071-0/+3
|
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-1/+1
|
* Issue #27626: Merge spelling fixes from 3.5Martin Panter2016-07-281-1/+1
|\
| * Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | | | | | Based on patch by Ville Skyttä.
* | Issue #27472: Add test.support.unix_shell as the path to the default shell.Xavier de Gaye2016-07-221-2/+2
| |
* | merge from 3.5. (moves the issue26372 tests to the proper class)Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-051-46/+46
|\ \ | |/
| * Move the BrokenPipeError tests to the POSIXProcessTestCase classGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-051-46/+46
| | | | | | | | | | instead of the generic ProcessTestCase class as they are posix specific.
* | issue26372 - use os.devnull instead of /dev/nullGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-041-1/+1
|\ \ | |/
| * issue26372 - use os.devnull instead of /dev/nullGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-041-1/+1
| |
* | merge from 3.5 - Fixes Issue #26373: subprocess.Popen.communicateGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-041-0/+47
|\ \ | |/ | | | | | | now correctly ignores BrokenPipeError when the child process dies before .communicate() is called in more (all?) circumstances.
| * Fixes Issue #26373: subprocess.Popen.communicate now correctly ignoresGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-041-0/+47
| | | | | | | | | | BrokenPipeError when the child process dies before .communicate() is called in more (all?) circumstances.
* | issue27167: make the test not care about the exact signal name in theGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-031-1/+3
| | | | | | | | error message as some numbers map to multiple names.
* | Issue #27167: Clarify the subprocess.CalledProcessError error message textGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-031-0/+19
| | | | | | | | when the child process died due to a signal.
* | subprocess now emits a ResourceWarning warningVictor Stinner2016-05-201-2/+6
| | | | | | | | | | Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning if the child process is still running.
* | Use "with popen:" in test_subprocessVictor Stinner2016-05-201-58/+55
| | | | | | | | Issue #26741.
* | Issue #22274: Merge stderr=STDOUT fix from 3.5Martin Panter2016-05-131-0/+21
|\ \ | |/
| * Issue #22274: Redirect stderr=STDOUT when stdout not redirected, by Akira LiMartin Panter2016-05-131-0/+21
| |
* | Remove more unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| |
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-3/+0
| |
* | Issue #26782: Add STARTUPINFO to subprocess.__all__ on WindowsMartin Panter2016-04-161-2/+1
|/
* Issue #26782: Acknowledge the incomplete status of __all__ in 3.5Martin Panter2016-04-161-1/+2
| | | | | Handle is probably meant to be excluded, and STARTUPINFO will be added to __all__ in 3.6.
* Issue #10838: Run test__all__() everywhere, even if poll() is not availableMartin Panter2016-04-161-15/+14
|
* Issue #25764: Skip fork failure test when run as rootMartin Panter2015-12-111-2/+6
|
* Issue #25764: Merge OS X test skipping from 3.4 into 3.5Martin Panter2015-12-051-0/+2
|\
| * Issue #25764: Skip the test on OS XMartin Panter2015-12-051-0/+2
| | | | | | | | | | | | | | The OS X buildbots were failing at the second setrlimit() call with EPERM, as if they were trying to raise the hard limit. The call should be keeping the hard limit the same and raising the soft limit back to its original value, so I don't understand the failure.
* | Issue #25764: Merge subprocess fix from 3.4 into 3.5Martin Panter2015-12-051-0/+16
|\ \ | |/
| * Issue #25764: Preserve subprocess fork exception when preexec_fn usedMartin Panter2015-11-301-0/+16
| | | | | | | | Also fix handling of failure to release the import lock.
* | Fixes #23564: Fix a partially broken sanity check in the _posixsubprocessGregory P. Smith2015-11-161-2/+28
| | | | | | | | | | internals regarding how fds_to_pass were passed to the child. The bug had no actual impact as subprocess.py already avoided it.
* | Issue #25249: Remove unneeded mkstemp helper in test_subprocessBerker Peksag2015-09-281-18/+8
|\ \ | |/ | | | | | | | | | | The helper was added in 76641824cf05 11 years ago and it can be removed now since all supported Python versions have tempfile.mkstemp(). Patch by Nir Soffer.
| * Issue #25249: Remove unneeded mkstemp helper in test_subprocessBerker Peksag2015-09-281-18/+8
| | | | | | | | | | | | | | The helper was added in 76641824cf05 11 years ago and it can be removed now since all supported Python versions have tempfile.mkstemp(). Patch by Nir Soffer.
* | Use support.change_cwd() in tests.Serhiy Storchaka2015-09-061-5/+2
|\ \ | |/
| * Use support.change_cwd() in tests.Serhiy Storchaka2015-09-061-5/+2
| |
* | Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-2/+2
| | | | | | | | Patch by Christie Wilson.
* | Add a subprocess.run() function than returns a CalledProcess instance for aGregory P. Smith2015-04-141-0/+97
| | | | | | | | | | more consistent API than the existing call* functions. (enhancement from issue 23342)
* | issue10838: Rename the subprocess.mswindows internal global to _mswindows.Gregory P. Smith2015-04-071-1/+1
| | | | | | | | It is internal only, not a documented API.
* | Addresses Issue #10838: The subprocess now module includesGregory P. Smith2015-04-071-0/+15
| | | | | | | | | | | | | | | | | | | | SubprocessError and TimeoutError in its list of exported names for the users wild enough to use "from subprocess import *". MAXFD, mswindows and list2cmdline should be dealt with (renamed or moved) in separate commits. Committed at 35,000ft. Thanks chromebook free gogo wifi passes!
* | Issue #21619: Cleaned up test_broken_pipe_cleanup.Serhiy Storchaka2015-03-081-10/+8
|\ \ | |/ | | | | Patch by Martin Panter.
| * Issue #21619: Cleaned up test_broken_pipe_cleanup.Serhiy Storchaka2015-03-081-10/+8
| | | | | | | | Patch by Martin Panter.
* | Merge 3.4 (test_subprocess)Victor Stinner2015-03-051-6/+9
|\ \ | |/
| * Issue #21619: Try to fix test_broken_pipe_cleanup()Victor Stinner2015-03-051-6/+9
| |
* | Fixed a test for issue #21619 on Windows.Serhiy Storchaka2015-02-281-1/+1
|\ \ | |/ | | | | On Windows an OSError with errno=EINVAL is raised.
| * Fixed a test for issue #21619 on Windows.Serhiy Storchaka2015-02-281-1/+1
| | | | | | | | On Windows an OSError with errno=EINVAL is raised.
* | Issue #21619: Popen objects no longer leave a zombie after exit in the withSerhiy Storchaka2015-02-281-0/+15
|\ \ | |/ | | | | statement if the pipe was broken. Patch by Martin Panter.
| * Issue #21619: Popen objects no longer leave a zombie after exit in the withSerhiy Storchaka2015-02-281-0/+15
| | | | | | | | statement if the pipe was broken. Patch by Martin Panter.
* | Use os.devnull instead of hardcoded '/dev/null'.Serhiy Storchaka2015-02-151-2/+2
|\ \ | |/
| * Use os.devnull instead of hardcoded '/dev/null'.Serhiy Storchaka2015-02-151-2/+2
| |
* | Issue #23285: PEP 475 -- Retry system calls failing with EINTR.Charles-François Natali2015-02-071-20/+0
|/
* Issue #22290: Fix error handling in the _posixsubprocess module.Victor Stinner2014-10-051-0/+33
| | | | | | | | * Don't call the garbage collector with an exception set: it causes an assertion to fail in debug mode. * Enhance also error handling if allocating an array for the executable list failed. * Add an unit test for 4 different errors in the _posixsubprocess module.
* Issue #21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line ↵Antoine Pitrou2014-09-211-0/+33
| | | | buffering, rather than block buffering.