summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes issue #15798: subprocess.Popen() no longer fails if fileGregory P. Smith2013-12-021-0/+21
| | | | descriptor 0, 1 or 2 is closed. (correct fix for 3.4 this time)
* Undo supposed fix for Issue #15798 until I understand why this isGregory P. Smith2013-12-011-21/+0
|\ | | | | | | | | causing test_multiprocessing_forkserver and test_multiprocessing_spawn failures on head (3.4).
| * Undo supposed fix for Issue #15798 until I understand why this isGregory P. Smith2013-12-011-21/+0
| | | | | | | | | | causing test_multiprocessing_forkserver and test_multiprocessing_spawn failures on head (3.4).
* | Fixes Issue #15798 - subprocess.Popen() no longer fails if fileGregory P. Smith2013-12-011-0/+21
|\ \ | |/ | | | | descriptor 0, 1 or 2 is closed.
| * Fixes Issue #15798 - subprocess.Popen() no longer fails if fileGregory P. Smith2013-12-011-0/+21
| | | | | | | | descriptor 0, 1 or 2 is closed.
* | Issue #19637: fix test_undecodable_env() of test_subprocess on AIXVictor Stinner2013-11-191-5/+12
| | | | | | | | On AIX, the C locale encoding uses the ISO-8859-1 encoding, not ASCII.
* | Issue #18923: Update subprocess to use the new selectors module.Charles-François Natali2013-11-081-4/+6
| |
* | Issue #10197 Rework subprocess.get[status]output to use subprocess ↵Tim Golden2013-11-031-9/+2
|\ \ | |/ | | | | functionality and thus to work on Windows. Patch by Nick Coghlan.
| * Issue #10197 Rework subprocess.get[status]output to use subprocess ↵Tim Golden2013-11-031-9/+2
| | | | | | | | functionality and thus to work on Windows. Patch by Nick Coghlan.
* | Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io ↵Antoine Pitrou2013-10-111-3/+4
| | | | | | | | module instead of the full locale module.
* | Issue #18948: improve SuppressCoreFiles to include Windows crash popup ↵Antoine Pitrou2013-10-081-1/+1
| | | | | | | | | | | | suppression, and use it in more tests. Patch by Valerie Lambert and Zachary Ware.
* | Issue #18623: Factor out the _SuppressCoreFiles context manager into ↵Antoine Pitrou2013-09-061-46/+1
| | | | | | | | | | | | test.support. Patch by Valerie Lambert.
* | Issue #18571: Merge duplicate test codeVictor Stinner2013-09-011-2/+2
| | | | | | | | Merge test/subprocessdata/inherited.py into test/subprocessdata/fd_status.py
* | Forward port new tests from Issue #18851.Antoine Pitrou2013-08-301-0/+34
|\ \ | |/
| * Forward port new tests from Issue #18851.Antoine Pitrou2013-08-301-0/+34
| |
* | Fixes Issue #15507: test_subprocess's test_send_signal could fail if the testGregory P. Smith2013-08-291-10/+16
|\ \ | |/ | | | | | | | | runner were run in an environment where the process inherited an ignore setting for SIGINT. Restore the SIGINT handler to the desired KeyboardInterrupt raising one during that test.
| * Fixes issue #15507: test_subprocess's test_send_signal could fail if the testGregory P. Smith2013-08-291-10/+16
| | | | | | | | | | | | runner were run in an environment where the process inherited an ignore setting for SIGINT. Restore the SIGINT handler to the desired KeyboardInterrupt raising one during that test.
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-19/+54
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | Merge.Charles-François Natali2013-08-251-0/+17
|\ \ | |/
| * Issue #18763: subprocess: The file descriptors are now closed after calling theCharles-François Natali2013-08-251-0/+17
| | | | | | | | preexec_fn callback, which may open file descriptors.
* | Issue #17046: merge from 3.3Ned Deily2013-08-031-1/+2
|\ \ | |/
| * Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case.Ned Deily2013-08-031-1/+2
| |
* | Fix the RLIMIT_CORE resource lowering logic in test_subprocess.Antoine Pitrou2013-08-011-1/+1
| | | | | | | | | | We must only lower the soft limit, since lowering the hard limit makes it impossible to raise it back at the end. (this could prevent core dumps from being generated when the test suite crashes)
* | Merge.Richard Oudkerk2013-06-101-1/+2
|\ \ | |/
| * Issue #18174: Fix fd leaks in tests.Richard Oudkerk2013-06-101-1/+2
| |
* | Try to make test more reliable (saw some sporadic failures on buildbots)Antoine Pitrou2013-05-191-3/+3
|\ \ | |/
| * Try to make test more reliable (saw some sporadic failures on buildbots)Antoine Pitrou2013-05-191-3/+3
| |
* | Issue #16624: `subprocess.check_output` now accepts an `input` argument,Serhiy Storchaka2013-04-221-1/+35
| | | | | | | | | | allowing the subprocess's stdin to be provided as a (byte) string. Patch by Zack Weinberg.
* | Fixes issue #17488: Change the subprocess.Popen bufsize parameter default valueGregory P. Smith2013-03-231-0/+28
|\ \ | |/ | | | | | | | | from unbuffered (0) to buffering (-1) to match the behavior existing code expects and match the behavior of the subprocess module in Python 2 to avoid introducing hard to track down bugs.
| * Fixes issue #17488: Change the subprocess.Popen bufsize parameter default valueGregory P. Smith2013-03-231-0/+28
| |\ | | | | | | | | | | | | | | | from unbuffered (0) to buffering (-1) to match the behavior existing code expects and match the behavior of the subprocess module in Python 2 to avoid introducing hard to track down bugs.
| | * Fixes issue #17488: Change the subprocess.Popen bufsize parameter default valueGregory P. Smith2013-03-231-0/+22
| | | | | | | | | | | | | | | | | | from unbuffered (0) to buffering (-1) to match the behavior existing code expects and match the behavior of the subprocess module in Python 2 to avoid introducing hard to track down bugs.
* | | #11963: merge with 3.3.Ezio Melotti2013-03-111-12/+36
|\ \ \ | |/ /
| * | #11963: merge with 3.2.Ezio Melotti2013-03-111-12/+36
| |\ \ | | |/
| | * #11963: remove human verification from test_parser and test_subprocess.Ezio Melotti2013-03-111-12/+36
| | |
| | * 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.
| * | 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.