Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in case ↵ | Oren Milman | 2017-09-14 | 1 | -0/+9 |
| | | | | env has a bad keys() method. (#3580) | ||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -7/+1 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | bpo-31178: Avoid concatenating bytes with str in subprocess error (#3066) | Ammar Askar | 2017-09-06 | 1 | -0/+47 |
| | | | Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath. | ||||
* | bpo-12383: Also ignore __PYVENV_LAUNCHER__ (#3278) | Ned Deily | 2017-09-04 | 1 | -0/+1 |
| | | | Used in macOS framework builds. | ||||
* | Skip two tests not intended to pass on Windows. (#3202) | Gregory P. Smith | 2017-08-25 | 1 | -0/+2 |
| | |||||
* | bpo-22536: Set the filename in FileNotFoundError. (#3194) | Gregory P. Smith | 2017-08-24 | 1 | -0/+10 |
| | | | | Have the subprocess module set the filename in the FileNotFoundError exception raised on POSIX systems when the executable or cwd are missing. | ||||
* | Add test_subprocess.test_nonexisting_with_pipes() (#3133) | Victor Stinner | 2017-08-21 | 1 | -4/+47 |
| | | | | bpo-30121: Test the Popen failure when Popen was created with pipes. Create also NONEXISTING_CMD variable in test_subprocess.py. | ||||
* | bpo-30121: Fix debug assert in subprocess on Windows (#1224) | Segev Finer | 2017-08-18 | 1 | -4/+5 |
| | | | | | | | | | * bpo-30121: Fix debug assert in subprocess on Windows This is caused by closing HANDLEs using os.close which is for CRT file descriptors and not for HANDLEs. * bpo-30121: Suppress debug assertion in test_subprocess when ran directly | ||||
* | bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) | Victor Stinner | 2017-08-10 | 1 | -35/+22 |
| | | | | | | | | | | | | | The current test_child_terminated_in_stopped_state() function test creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and then crash (SIGSEGV). The problem is that calling os.waitpid() in the parent process is not enough to close the process: the child process remains alive and so the unit test leaks a child process in a strange state. Closing the child process requires non-trivial code, maybe platform specific. Remove the functional test and replaces it with an unit test which mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to test the WIFSTOPPED() path. | ||||
* | Spelling fixes (#2902) | Ville Skyttä | 2017-08-03 | 1 | -4/+4 |
| | |||||
* | bpo-31067: test_subprocess calls reap_children() (#2931) | Victor Stinner | 2017-07-28 | 1 | -0/+2 |
| | | | | test_subprocess now also calls reap_children() in tearDown(), not only on setUp(). | ||||
* | bpo-30764: test_subprocess uses SuppressCrashReport (#2405) | Victor Stinner | 2017-06-26 | 1 | -19/+22 |
| | | | | | bpo-30764, bpo-29335: test_child_terminated_in_stopped_state() of test_subprocess now uses support.SuppressCrashReport() to prevent the creation of a core dump on FreeBSD. | ||||
* | bpo-30730: Prevent environment variables injection in subprocess on Windows. ↵ | Serhiy Storchaka | 2017-06-23 | 1 | -0/+40 |
| | | | | | | (#2325) Prevent passing other invalid environment variables and command arguments. | ||||
* | bpo-28180: Implementation for PEP 538 (#659) | Nick Coghlan | 2017-06-11 | 1 | -1/+2 |
| | | | | | | | | | | - new PYTHONCOERCECLOCALE config setting - coerces legacy C locale to C.UTF-8, C.utf8 or UTF-8 by default - always uses C.UTF-8 on Android - uses `surrogateescape` on stdin and stdout in the coercion target locales - configure option to disable locale coercion at build time - configure option to disable C locale warning at build time | ||||
* | subprocess test_empty_env typo fix. (#1877) | Gregory P. Smith | 2017-05-30 | 1 | -3/+3 |
| | |||||
* | bpo-12383: Refactor subprocess test_empty_env (#1874) | Gregory P. Smith | 2017-05-30 | 1 | -12/+20 |
| | | | | | | | | | | | | Bugfix: This test wasn't being run because it was skipping based on the presence of Py_ENABLE_SHARED rather than its value. It is always present on POSIX systems but defaults to 0. Refactoring: Move the environment variables that can be ignored into a function. Parse the list from the child process and filter out the ones to exclude in the parent before checking that the rest is empty. Feature: Adds always present environment variables to ignore when running in a Gentoo sandbox so that the test can pass there. | ||||
* | bpo-29335 - apply suggested test_subprocess simplifications from haypo and ↵ | Gregory P. Smith | 2017-05-23 | 1 | -9/+5 |
| | | | | | Zach: (#1757) use faulthandler._sigsegv() and ctypes.util.find_library('c') | ||||
* | bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110) | Serhiy Storchaka | 2017-04-19 | 1 | -1/+12 |
| | |||||
* | bpo-28624: Add a test that checks that cwd parameter of Popen() accepts ↵ | Sayan Chowdhury | 2017-02-26 | 1 | -0/+10 |
| | | | | PathLike objects (#157) | ||||
* | bpo-26128: Added __init__to subprocess.STARTUPINFO (#171) | Subhendu Ghosh | 2017-02-25 | 1 | -0/+16 |
| | | | | | | | The Windows-specific subprocess.STARTUPINFO class now accepts keyword-only arguments to its constructor to set the various data attributes. Patch by Subhendu Ghosh. | ||||
* | Skip the test requiring ctypes if ctypes is unavailable. | Gregory P. Smith | 2017-01-23 | 1 | -1/+6 |
|\ | | | | | | | prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio | ||||
| * | Skip the test requiring ctypes if ctypes is unavailable. | Gregory P. Smith | 2017-01-23 | 1 | -1/+6 |
| |\ | | | | | | | | | | prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio | ||||
| | * | Skip the test requiring ctypes if ctypes is unavailable. | Gregory P. Smith | 2017-01-23 | 1 | -1/+6 |
| | | | | | | | | | | | | prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio | ||||
* | | | typo fix, extra '.' on MacOS :) | Gregory P. Smith | 2017-01-23 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | typo fix, extra '.' on MacOS :) | Gregory P. Smith | 2017-01-23 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | typo fix, extra '.' :) | Gregory P. Smith | 2017-01-23 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #29335: Fix subprocess.Popen.wait() when the child process has | Gregory P. Smith | 2017-01-23 | 1 | -0/+41 |
|\ \ \ | |/ / | | | | | | | exited to a stopped instead of terminated state (ex: when under ptrace). | ||||
| * | | Issue #29335: Fix subprocess.Popen.wait() when the child process has | Gregory P. Smith | 2017-01-23 | 1 | -0/+41 |
| |\ \ | | |/ | | | | | | | exited to a stopped instead of terminated state (ex: when under ptrace). | ||||
| | * | Issue #29335: Fix subprocess.Popen.wait() when the child process has | Gregory P. Smith | 2017-01-23 | 1 | -0/+41 |
| | | | | | | | | | | | | exited to a stopped instead of terminated state (ex: when under ptrace). | ||||
| | * | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #20572: Remove the subprocess.Popen.wait endtime parameter. | Gregory P. Smith | 2016-11-21 | 1 | -14/+0 |
|\ \ \ | |/ / | | | | | | | It was deprecated in 3.4 and undocumented prior to that. | ||||
| * | | Issue #20572: The subprocess.Popen.wait method's undocumented endtime | Gregory P. Smith | 2016-11-21 | 1 | -14/+13 |
|/ / | | | | | | | | | parameter now raises a DeprecationWarning. It was deprecated in 3.4. It was never documented prior to that. | ||||
* | | Issue #28662: Catch PermissionError in tests when spawning a non existent ↵ | Xavier de Gaye | 2016-11-14 | 1 | -2/+3 |
| | | | | | | | | program | ||||
* | | Issue #6135: Adds encoding and errors parameters to subprocess | Steve Dower | 2016-09-07 | 1 | -18/+41 |
| | | |||||
* | | Adds test.support.PGO and skips tests that are not useful for PGO. | Steve Dower | 2016-09-07 | 1 | -0/+3 |
| | | |||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -1/+1 |
| | | |||||
* | | Issue #27626: Merge spelling fixes from 3.5 | Martin Panter | 2016-07-28 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27626: Spelling fixes in docs, comments and internal names | Martin Panter | 2016-07-28 | 1 | -1/+1 |
| | | | | | | | | Based on patch by Ville Skyttä. | ||||
* | | Issue #27472: Add test.support.unix_shell as the path to the default shell. | Xavier de Gaye | 2016-07-22 | 1 | -2/+2 |
| | | |||||
* | | merge from 3.5. (moves the issue26372 tests to the proper class) | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-05 | 1 | -46/+46 |
|\ \ | |/ | |||||
| * | Move the BrokenPipeError tests to the POSIXProcessTestCase class | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-05 | 1 | -46/+46 |
| | | | | | | | | | | instead of the generic ProcessTestCase class as they are posix specific. | ||||
* | | issue26372 - use os.devnull instead of /dev/null | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-04 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | issue26372 - use os.devnull instead of /dev/null | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-04 | 1 | -1/+1 |
| | | |||||
* | | merge from 3.5 - Fixes Issue #26373: subprocess.Popen.communicate | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-04 | 1 | -0/+47 |
|\ \ | |/ | | | | | | | now correctly ignores BrokenPipeError when the child process dies before .communicate() is called in more (all?) circumstances. | ||||
| * | Fixes Issue #26373: subprocess.Popen.communicate now correctly ignores | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-04 | 1 | -0/+47 |
| | | | | | | | | | | BrokenPipeError when the child process dies before .communicate() is called in more (all?) circumstances. | ||||
* | | issue27167: make the test not care about the exact signal name in the | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-03 | 1 | -1/+3 |
| | | | | | | | | error message as some numbers map to multiple names. | ||||
* | | Issue #27167: Clarify the subprocess.CalledProcessError error message text | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-03 | 1 | -0/+19 |
| | | | | | | | | when the child process died due to a signal. | ||||
* | | subprocess now emits a ResourceWarning warning | Victor Stinner | 2016-05-20 | 1 | -2/+6 |
| | | | | | | | | | | Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning if the child process is still running. | ||||
* | | Use "with popen:" in test_subprocess | Victor Stinner | 2016-05-20 | 1 | -58/+55 |
| | | | | | | | | Issue #26741. | ||||
* | | Issue #22274: Merge stderr=STDOUT fix from 3.5 | Martin Panter | 2016-05-13 | 1 | -0/+21 |
|\ \ | |/ |