summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* you can't get resource.error if you can't import resourceBenjamin Peterson2011-12-101-11/+16
|
* Issue #12786: Set communication pipes used by subprocess.Popen CLOEXEC to avoidCharles-François Natali2011-08-251-0/+31
| | | | them being inherited by other subprocesses.
* Fix resource leaks 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: only run the tests on Unix.Charles-François Natali2011-08-181-58/+58
|
* Issue #12650: Fix a race condition where a subprocess.Popen could leakCharles-François Natali2011-08-181-0/+57
| | | | 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 #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 #12085: Fix test_subprocess for my previous commitVictor Stinner2011-05-311-1/+1
| | | | Replace support by test_support, and add captured_stderr() function.
* 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.
* Issue #10963: Ensure that subprocess.communicate() never raises EPIPE.Ross Lagerwall2011-04-051-0/+18
|
* #11490: EACCES can also mean command not foundR David Murray2011-03-141-1/+2
|
* Merged revisions 87695 via svnmerge fromAntoine Pitrou2011-01-031-0/+52
| | | | | | | | | | | | 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. ........
* Merged revisions 87233 via svnmerge fromGregory P. Smith2010-12-141-0/+10
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87233 | gregory.p.smith | 2010-12-14 06:38:00 -0800 (Tue, 14 Dec 2010) | 4 lines Issue #1731717: Fixed the problem where subprocess.wait() could cause an OSError exception when The OS had been told to ignore SIGCLD in our process or otherwise not wait for exiting child processes. ........
* Merged revisions 86207 via svnmerge fromBrian Curtin2010-11-051-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86207 | brian.curtin | 2010-11-05 12:09:05 -0500 (Fri, 05 Nov 2010) | 2 lines Fix a number of ResourceWarnings on Windows due to open pipes. ........
* Merged revisions 86185 via svnmerge fromBrian Curtin2010-11-051-0/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86185 | brian.curtin | 2010-11-04 22:58:52 -0500 (Thu, 04 Nov 2010) | 2 lines Add cleanups to stdout/stderr pipes to remove ResourceWarnings. ........
* Merged revisions 84997 via svnmerge fromAntoine Pitrou2010-09-241-20/+14
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84997 | antoine.pitrou | 2010-09-24 20:57:01 +0200 (ven., 24 sept. 2010) | 3 lines Make _kill_process more robust under Windows too (see issue #8432) ........
* Merged revisions 84909-84913 via svnmerge fromAntoine Pitrou2010-09-201-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84909 | antoine.pitrou | 2010-09-20 00:46:05 +0200 (lun., 20 sept. 2010) | 3 lines Try to fix test_subprocess on "x86 debian parallel 3.x" buildbot ........ r84910 | antoine.pitrou | 2010-09-20 01:06:53 +0200 (lun., 20 sept. 2010) | 3 lines Try to make signal-sending tests in test_subprocess more robust on slow machines ........ r84911 | antoine.pitrou | 2010-09-20 01:28:30 +0200 (lun., 20 sept. 2010) | 3 lines Make error more explicit in test_finalize_with_trace ........ r84912 | antoine.pitrou | 2010-09-20 02:12:19 +0200 (lun., 20 sept. 2010) | 3 lines Try to fix buildbot failure (#9902) ........ r84913 | antoine.pitrou | 2010-09-20 03:33:21 +0200 (lun., 20 sept. 2010) | 3 lines Try a more robust implementation of _kill_process ........
* Merged revisions 84883 via svnmerge fromAntoine Pitrou2010-09-181-12/+32
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84883 | antoine.pitrou | 2010-09-19 00:38:48 +0200 (dim., 19 sept. 2010) | 3 lines Issue #9895: speed up test_subprocess ........
* Merged revisions 84878 via svnmerge fromAntoine Pitrou2010-09-181-1/+1
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84878 | antoine.pitrou | 2010-09-18 19:56:02 +0200 (sam., 18 sept. 2010) | 5 lines Issue #9894: Do not hardcode ENOENT in test_subprocess. (GNU/Hurd is not dead) ........
* Merged revisions 83983 via svnmerge fromBrian Curtin2010-08-131-2/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83983 | brian.curtin | 2010-08-13 15:42:57 -0500 (Fri, 13 Aug 2010) | 3 lines Fix #9588. Add sys.executable to two shell=True tests. ........
* #2304: fix incorporating Eric Smith's .format suggestion and tested on ↵Tim Golden2010-08-121-1/+43
| | | | Ubuntu as well as Windows
* revert 83832; unix test breakageBenjamin Peterson2010-08-081-43/+1
|
* Issue #2304: Add additional quotes when using cmd shell on Windows. Original ↵Tim Golden2010-08-081-1/+43
| | | | patch from Gabriel Genellina
* Issue #3210: Ensure stdio handles are closed if CreateProcess failsTim Golden2010-08-061-0/+20
|
* Merged revisions 83067 via svnmerge fromRonald Oussoren2010-07-231-0/+14
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83067 | ronald.oussoren | 2010-07-23 10:50:05 +0100 (Fri, 23 Jul 2010) | 8 lines Workaround for issue 4047: in some configurations of the Crash Reporter on OSX test_subprocess will trigger the reporter. This patch prints a warning when the Crash Reporter will get triggered intentionally, which should avoid confusing people. ........
* Issue #9265: Incorrect name passed as arg[0] when shell=TrueStefan Krah2010-07-191-0/+19
| | | | and executable specified.
* Revert r60115Jean-Paul Calderone2010-06-181-2/+0
| | | | | | | | | | | | This revision introduced quoting for strings containing | based on a misunderstanding of the commonly used quoting rules used on Windows. | is interpreted by cmd.exe, not by the MS C runtime argv initializer. It only needs to be quoted if it is part of an argument passed through cmd.exe. See issue1300, issue7839, and issue8972.
* The SIGINT signal may happen earlier, during site.py initialization.Florent Xicluna2010-03-231-4/+1
|
* The standard error should be empty when the signal is killed, except on SIGINT.Florent Xicluna2010-03-231-2/+8
|
* Silence test_subprocess.Florent Xicluna2010-03-231-24/+12
|
* Revert r78830: realpath() should really be applied to sys.executable.Florent Xicluna2010-03-111-1/+1
|
* Fix the test_subprocess failure when sys.executable is meaningless: '' or a ↵Florent Xicluna2010-03-111-1/+1
| | | | | | directory. It does not fix #7774.
* Replace the stderr logging with assertNotEqual(returncode, 0).Florent Xicluna2010-03-081-4/+2
|
* #2777: Try hard to make Win7 buildbot happy...Florent Xicluna2010-03-071-2/+3
|
* Do not fail if returncode is 0 on send_signal/kill/terminate, for win32 ↵Florent Xicluna2010-03-071-39/+44
| | | | | | platforms. Do not hide the KeyboardInterrupt on POSIX platforms.
* #2777: Enable test_send_signal, test_terminate and test_kill on win32 platforms.Florent Xicluna2010-03-071-3/+0
|
* Skip test_send_signal, test_kill, test_terminate on win32 platforms, for ↵Florent Xicluna2010-03-061-5/+11
| | | | 2.7a4 release.
* #2777: Apply same recipe on win32, i.e. do not inherit file handles.Florent Xicluna2010-03-061-3/+5
|
* #2777: Apply same recipe for test_terminate and test_kill, i.e. close or ↵Florent Xicluna2010-03-061-2/+4
| | | | redirect fds.
* #2777: Handle fds more carefully to try to fix some x86-Linux failures ↵Florent Xicluna2010-03-051-3/+6
| | | | (namely, neal bot and twisted bot).
* These line should not be there.Florent Xicluna2010-03-051-1/+0
|
* Let's use assertIsNone / assertIsNotNone. It's hype.Florent Xicluna2010-03-051-5/+5
|
* Workaround #3137: Retry SIGINT if it is not received the first time.Florent Xicluna2010-03-051-2/+13
| | | | test_send_signal should not hang anymore on various Linux distributions.
* #2777: Enable test_send_signal, test_kill and test_terminate on all platforms.Florent Xicluna2010-03-041-6/+20
|
* Cleanup.Florent Xicluna2010-03-041-5/+5
|
* Fix the new test on windows (skip it, its posix only)Gregory P. Smith2010-03-011-0/+1
|
* Issue #1068268: The subprocess module now handles EINTR in internalGregory P. Smith2010-03-011-1/+21
| | | | os.waitpid and os.read system calls where appropriate.
* Fix an oversight in r78508: p.wait() should be compared to 0Florent Xicluna2010-02-271-4/+4
|