Commit Graph

115 Commits

Author SHA1 Message Date
Martin Panter
1edccfa60a Issue #22274: Redirect stderr=STDOUT when stdout not redirected, by Akira Li 2016-05-13 01:54:44 +00:00
Berker Peksag
b7c3515308 Issue #25249: Remove unneeded mkstemp helper in test_subprocess
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.
2015-09-28 15:37:57 +03:00
Antoine Pitrou
33fc744ea3 Issue #18851: Avoid a double close of subprocess pipes when the child process fails starting. 2013-08-30 23:38:13 +02:00
Richard Oudkerk
045e457992 Issue #18174: Fix fd leaks in tests. 2013-06-10 16:27:45 +01:00
Ezio Melotti
9b9cd4c85e #11963: fix Windows buildbots. 2013-03-11 03:21:08 +02:00
Ezio Melotti
efaad09c9a #11963: remove human verification from test_subprocess. 2013-03-11 00:34:33 +02:00
Charles-François Natali
ef2bd67e23 Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
returns ESRCH for a zombie process, which is not POSIX-compliant.
2013-01-12 16:52:20 +01:00
Gregory P. Smith
027d6fcebd remove an obsolete comment 2012-11-11 10:13:06 -08:00
Gregory P. Smith
f047ba83e8 Refactor test_preexec_errpipe to not create an uncollectable reference cycle. 2012-11-11 09:49:02 -08:00
Gregory P. Smith
c3197254ac whitespace fix 2012-11-11 02:01:56 -08:00
Gregory P. Smith
211248b214 Fix issue #16140 bug that the fix to issue #16327 added - don't double
close subprocess.PIPE file descriptors when the child encounters an
error prior to exec.
2012-11-11 02:00:49 -08:00
Gregory P. Smith
9d3b6e9822 Fixes issue #16327: The subprocess module no longer leaks file descriptors
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:49:03 -08:00
Mark Dickinson
313dc9b812 Clean up a test turd. 2012-10-07 15:41:38 +01:00
Antoine Pitrou
f60845b70a Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited. 2012-03-11 19:29:12 +01:00
Benjamin Peterson
8b59c23a54 you can't get resource.error if you can't import resource 2011-12-10 12:31:42 -05:00
Charles-François Natali
2a34eb3104 Issue #12786: Set communication pipes used by subprocess.Popen CLOEXEC to avoid
them being inherited by other subprocesses.
2011-08-25 21:20:54 +02:00
Nadeem Vawda
860593653b Fix resource leaks in test_subprocess. 2011-08-19 05:22:24 +02:00
Charles-François Natali
a8085d306e Issue #12650: fix failures on some buildbots, when a subprocess takes a long
time to spawn.
2011-08-19 00:26:38 +02:00
Charles-François Natali
100df0f2b0 Issue #12650: only run the tests on Unix. 2011-08-18 17:56:02 +02:00
Charles-François Natali
b02302c5cf Issue #12650: Fix a race condition where a subprocess.Popen could leak
resources (FD/zombie) when killed at the wrong time.
2011-08-18 17:18:28 +02:00
Ross Lagerwall
d8e3901478 Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
given as a low fd, it gets overwritten.
2011-07-27 18:54:53 +02:00
Victor Stinner
b78fed9ee6 Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing 2011-07-05 14:50:35 +02:00
Victor Stinner
e790131dc6 Issue #12493: subprocess: communicate() handles EINTR
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner
e9b185f263 Issue #12085: Fix test_subprocess for my previous commit
Replace support by test_support, and add captured_stderr() function.
2011-06-01 01:57:48 +02:00
Victor Stinner
776e69b5b3 Close #12085: Fix an attribute error in subprocess.Popen destructor if the
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 01:03:00 +02:00