summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix bad inheritance in test_subprocess that led to a number of tests being ↵Georg Brandl2012-02-201-1/+1
| | | | executed twice.
* 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.
* we're always going to have gcBenjamin Peterson2011-12-101-6/+1
|
* you can't get resource.error if you can't import resourceBenjamin Peterson2011-12-101-11/+17
|
* Fix ResourceWarnings 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: Fix a race condition where a subprocess.Popen could leakCharles-François Natali2011-08-181-0/+58
| | | | 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 #12591: Improve support of "universal newlines" in the subprocessAntoine Pitrou2011-07-231-16/+48
| | | | | | | module: the piped streams can now be properly read from or written to. (this was broken due to the 2.x to 3.x transition; communicate() support is still sketchy)
* 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 #12383: skip test_empty_env() of subprocess on WindowsVictor Stinner2011-06-221-0/+4
| | | | | Cannot test an empty environment on Windows: Windows requires at least the SYSTEMROOT environment variable to start Python.
* Issue #12383: fix test_empty_env() of subprocess on Mac OS XVictor Stinner2011-06-221-2/+6
| | | | | | Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix also the test on the Py_ENABLE_SHARED config varible: test that the variable is present, don't check it's value.
* Issue #12383: skip test_empty_env() if compiled is compiled in shared modeVictor Stinner2011-06-211-2/+5
| | | | | Try also to get more informations about the Mac OS X failure: display the keys of the environment, instead of just the number of variables.
* Close #12383: Fix subprocess module with env={}: don't copy the environmentVictor Stinner2011-06-211-7/+16
| | | | variables, start with an empty environment.
* Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the fileVictor Stinner2011-06-011-0/+5
| | | | | | | | descriptor of a pipe closed in the parent process is valid in the child process according to fstat(), but the mode of the file descriptor is invalid, and read or write raise an error. Add also requires_mac_ver() decorator to test.support.
* 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.
* Fix ProcessTestCasePOSIXPurePython to test the module from import whenGregory P. Smith2011-05-281-9/+17
| | | | | | | | | | | | | _posixsubprocess doesn't exist rather than simply stubbing it out after the fact. This adds coverage for the RuntimeWarning as well as using the pure python _create_pipe instead of using _posixsubprocess.cloexec_pipe unintentionally with the pure python code. Ironically: I don't think any platform should ever actually _use_ the pure Python subprocess code on POSIX platforms anymore. This at least tests it properly in this stable branch. The pure python code for this is likely to be removed in 3.3.
* merge - 7a3f3ad83676 Fixes Issue #12044.Gregory P. Smith2011-05-121-1/+2
|
* Merge with 3.1Ross Lagerwall2011-04-051-0/+19
|\
| * Issue #10963: Ensure that subprocess.communicate() never raises EPIPE.Ross Lagerwall2011-04-051-0/+19
| |
* | Merge with 3.1Ross Lagerwall2011-03-261-0/+1
|\ \ | |/
| * Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.Ross Lagerwall2011-03-261-0/+1
| | | | | | | | Patch by Ben Hayden.
* | Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-0/+16
|\ \ | |/ | | | | unbuffered pipes, such that select() works properly on them.
| * Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really createsAntoine Pitrou2011-03-191-0/+15
| | | | | | | | unbuffered pipes, such that select() works properly on them.
| * Fix whitespace in test_subprocessAntoine Pitrou2011-03-151-1/+1
| |
* | revert the test_main() change from 08daf3ef6509 so that regrtest continues ↵Gregory P. Smith2011-03-151-1/+14
| | | | | | | | to run this properly.
* | Add unittests demonstrating issue #11432.Gregory P. Smith2011-03-151-15/+21
| |
* | merge 141bbcb19c06Gregory P. Smith2011-03-151-2/+5
|\ \ | |/
| * Fix the @test_NNNN_tmp file terds being left in whatever your $PWD wasGregory P. Smith2011-03-151-2/+5
| | | | | | | | when test_subprocess was run.
* | Fix whitespaceR David Murray2011-03-141-1/+1
| |
* | Merge fix for #11490 from 3.1.R David Murray2011-03-141-1/+2
|\ \ | |/
| * #11490: EACCES can also mean command not foundR David Murray2011-03-141-1/+2
| |
| * Merged revisions 87695 via svnmerge fromAntoine Pitrou2011-01-031-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | 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. ........
| * fix "BytesWarning: str() on a bytes instance"Gregory P. Smith2010-12-141-1/+2
| |
| * Merged revisions 87233 via svnmerge fromGregory P. Smith2010-12-141-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | 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 86596 via svnmerge fromEzio Melotti2010-11-211-8/+8
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| * Merged revisions 84909-84913 via svnmerge fromAntoine Pitrou2010-09-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-13/+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-4/+50
| | | | | | | | Ubuntu as well as Windows
| * revert r83831, unix test breakageBenjamin Peterson2010-08-081-50/+4
| |
| * Issue #2304: Add additional quotes when using cmd shell on Windows. Original ↵Tim Golden2010-08-081-4/+50
| | | | | | | | 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/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........
| * Merged revisions 82971 via svnmerge fromStefan Krah2010-07-191-0/+19
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82971 | stefan.krah | 2010-07-19 16:20:53 +0200 (Mon, 19 Jul 2010) | 4 lines Issue #9265: Incorrect name passed as arg[0] when shell=True and executable specified. ........
| * Merged revisions 82076 via svnmerge fromJean-Paul Calderone2010-06-181-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r82076 | jean-paul.calderone | 2010-06-18 16:03:54 -0400 (Fri, 18 Jun 2010) | 19 lines Merged revisions 82075 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r82075 | jean-paul.calderone | 2010-06-18 16:00:17 -0400 (Fri, 18 Jun 2010) | 12 lines Revert r60115 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. ........ ................
| * Issue #8780: Only backport the new test, the fix is not neededVictor Stinner2010-05-211-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Recorded merge of revisions 81403 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81403 | victor.stinner | 2010-05-21 22:13:12 +0200 (ven., 21 mai 2010) | 5 lines Issue #8780: Fix a regression introduced by r78946 in subprocess on Windows Ensure that stdout / stderr is inherited from the parent if stdout=PIPE / stderr=PIPE is not used. ........