Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #16903: Popen.communicate() on Unix now accepts strings when | Serhiy Storchaka | 2013-02-04 | 1 | -2/+29 |
| | | | | universal_newlines is true as on Windows. | ||||
* | Issue #16762: Fix some test_subprocess failures on NetBSD and OpenBSD: kill() | Charles-François Natali | 2013-01-12 | 1 | -0/+2 |
| | | | | returns ESRCH for a zombie process, which is not POSIX-compliant. | ||||
* | fix test for subprocess (#16644) | Andrew Svetlov | 2012-12-26 | 1 | -2/+1 |
| | |||||
* | Refactor test_preexec_errpipe to not create an uncollectable reference cycle. | Gregory P. Smith | 2012-11-11 | 1 | -19/+18 |
| | |||||
* | Fixes issue #16140: The subprocess module no longer double closes its | Gregory P. Smith | 2012-11-11 | 1 | -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 #16327: The subprocess module no longer leaks file descriptors | Gregory P. Smith | 2012-11-11 | 1 | -0/+33 |
| | | | | used for stdin/stdout/stderr pipes to the child when fork() fails. | ||||
* | Fixes Issue #16114: The subprocess module no longer provides a | Gregory P. Smith | 2012-10-10 | 1 | -7/+40 |
| | | | | | | | | | | | | | | | misleading error message stating that args[0] did not exist when either the cwd or executable keyword arguments specified a path that did not exist. It now keeps track of if the child got as far as preexec and reports it if not back to the parent via a special "noexec" error message value in the error pipe so that the cwd can be blamed for a failed chdir instead of the exec of the executable being blamed instead. The executable is also always reported accurately when exec fails. Unittests enhanced to cover these cases. | ||||
* | revert accidental inclusion of subprocess tests | Andrew Svetlov | 2012-10-06 | 1 | -22/+0 |
| | |||||
* | Issue #16025: Minor corrections to the zipfile documentation. | Andrew Svetlov | 2012-10-06 | 1 | -0/+22 |
| | | | | Patch by Serhiy Storchaka. | ||||
* | Issue #15533: Skip test_cwd_with_relative_*() tests on Windows pending ↵ | Chris Jerdonek | 2012-09-30 | 1 | -0/+2 |
| | | | | resolution of issue. | ||||
* | Issue #15533: Clarify docs and add tests for subprocess.Popen()'s cwd argument. | Chris Jerdonek | 2012-09-30 | 1 | -29/+94 |
| | |||||
* | Issue #15595: Fix subprocess.Popen(universal_newlines=True) | Andrew Svetlov | 2012-08-19 | 1 | -0/+33 |
| | | | | | | for certain locales (utf-16 and utf-32 family). Patch by Chris Jerdonek. | ||||
* | Add test to explicit check the absence regression in subprocess (issue #15592). | Andrew Svetlov | 2012-08-14 | 1 | -0/+12 |
| | | | | Patch by Chris Jerdonek. | ||||
* | Fix universal newlines test to avoid the newline translation done by sys.stdout. | Antoine Pitrou | 2012-08-04 | 1 | -26/+28 |
| | |||||
* | Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under ↵ | Antoine Pitrou | 2012-03-11 | 1 | -0/+67 |
| | | | | Windows when the child process has already exited. | ||||
* | Fix bad inheritance in test_subprocess that led to a number of tests being ↵ | Georg Brandl | 2012-02-20 | 1 | -1/+1 |
| | | | | executed twice. | ||||
* | Fix a unittest error seen on NetBSD 5. | Gregory P. Smith | 2012-01-22 | 1 | -2/+12 |
| | |||||
* | Fixes issue #8052: The posix subprocess module's close_fds behavior was | Gregory P. Smith | 2012-01-21 | 1 | -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 gc | Benjamin Peterson | 2011-12-10 | 1 | -6/+1 |
| | |||||
* | you can't get resource.error if you can't import resource | Benjamin Peterson | 2011-12-10 | 1 | -11/+17 |
| | |||||
* | Fix ResourceWarnings in test_subprocess. | Nadeem Vawda | 2011-08-19 | 1 | -0/+4 |
| | |||||
* | Issue #12650: fix failures on some buildbots, when a subprocess takes a long | Charles-François Natali | 2011-08-18 | 1 | -12/+0 |
| | | | | time to spawn. | ||||
* | Issue #12650: Fix a race condition where a subprocess.Popen could leak | Charles-François Natali | 2011-08-18 | 1 | -0/+58 |
| | | | | resources (FD/zombie) when killed at the wrong time. | ||||
* | Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is | Ross Lagerwall | 2011-07-27 | 1 | -0/+58 |
| | | | | given as a low fd, it gets overwritten. | ||||
* | Issue #12591: Improve support of "universal newlines" in the subprocess | Antoine Pitrou | 2011-07-23 | 1 | -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 missing | Victor Stinner | 2011-07-05 | 1 | -0/+2 |
| | |||||
* | Issue #12493: subprocess: communicate() handles EINTR | Victor Stinner | 2011-07-05 | 1 | -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 Windows | Victor Stinner | 2011-06-22 | 1 | -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 X | Victor Stinner | 2011-06-22 | 1 | -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 mode | Victor Stinner | 2011-06-21 | 1 | -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 environment | Victor Stinner | 2011-06-21 | 1 | -7/+16 |
| | | | | variables, start with an empty environment. | ||||
* | Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file | Victor Stinner | 2011-06-01 | 1 | -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 the | Victor Stinner | 2011-05-31 | 1 | -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 when | Gregory P. Smith | 2011-05-28 | 1 | -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. Smith | 2011-05-12 | 1 | -1/+2 |
| | |||||
* | Merge with 3.1 | Ross Lagerwall | 2011-04-05 | 1 | -0/+19 |
|\ | |||||
| * | Issue #10963: Ensure that subprocess.communicate() never raises EPIPE. | Ross Lagerwall | 2011-04-05 | 1 | -0/+19 |
| | | |||||
* | | Merge with 3.1 | Ross Lagerwall | 2011-03-26 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459. | Ross Lagerwall | 2011-03-26 | 1 | -0/+1 |
| | | | | | | | | Patch by Ben Hayden. | ||||
* | | Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates | Antoine Pitrou | 2011-03-19 | 1 | -0/+16 |
|\ \ | |/ | | | | | unbuffered pipes, such that select() works properly on them. | ||||
| * | Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates | Antoine Pitrou | 2011-03-19 | 1 | -0/+15 |
| | | | | | | | | unbuffered pipes, such that select() works properly on them. | ||||
| * | Fix whitespace in test_subprocess | Antoine Pitrou | 2011-03-15 | 1 | -1/+1 |
| | | |||||
* | | revert the test_main() change from 08daf3ef6509 so that regrtest continues ↵ | Gregory P. Smith | 2011-03-15 | 1 | -1/+14 |
| | | | | | | | | to run this properly. | ||||
* | | Add unittests demonstrating issue #11432. | Gregory P. Smith | 2011-03-15 | 1 | -15/+21 |
| | | |||||
* | | merge 141bbcb19c06 | Gregory P. Smith | 2011-03-15 | 1 | -2/+5 |
|\ \ | |/ | |||||
| * | Fix the @test_NNNN_tmp file terds being left in whatever your $PWD was | Gregory P. Smith | 2011-03-15 | 1 | -2/+5 |
| | | | | | | | | when test_subprocess was run. | ||||
* | | Fix whitespace | R David Murray | 2011-03-14 | 1 | -1/+1 |
| | | |||||
* | | Merge fix for #11490 from 3.1. | R David Murray | 2011-03-14 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | #11490: EACCES can also mean command not found | R David Murray | 2011-03-14 | 1 | -1/+2 |
| | | |||||
| * | Merged revisions 87695 via svnmerge from | Antoine Pitrou | 2011-01-03 | 1 | -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. ........ |