| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
Improve human friendliness of the Popen API: Add text=False as a
keyword-only argument to subprocess.Popen along with a Popen
attribute .text_mode and set this based on the
encoding/errors/universal_newlines/text arguments.
The universal_newlines parameter and attribute are maintained for
backwards compatibility.
|
|
|
|
|
|
| |
Fix test_exception_errpipe_bad_data() and
test_exception_errpipe_normal() of test_subprocess: mock os.waitpid()
to avoid calling the real os.waitpid(0, 0) which is an unexpected
side effect of the test.
|
|
|
|
| |
env has a bad keys() method. (#3580)
|
|
|
|
|
|
| |
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
|
|
|
| |
Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath.
|
|
|
| |
Used in macOS framework builds.
|
| |
|
|
|
|
| |
Have the subprocess module set the filename in the FileNotFoundError
exception raised on POSIX systems when the executable or cwd are missing.
|
|
|
|
| |
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
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
(#2325)
Prevent passing other invalid environment variables and command arguments.
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Zach: (#1757)
use faulthandler._sigsegv() and ctypes.util.find_library('c')
|
| |
|
|
|
|
| |
PathLike objects (#157)
|
|
|
|
|
|
|
| |
The Windows-specific subprocess.STARTUPINFO class now accepts
keyword-only arguments to its constructor to set the various
data attributes.
Patch by Subhendu Ghosh.
|
|\
| |
| |
| | |
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
|
| |\
| | |
| | |
| | | |
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
|
| | |
| | |
| | |
| | | |
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
|
|\ \ \
| |/ / |
|
| |\ \
| | |/ |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
| |\ \
| | |/
| | |
| | | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
| | |
| | |
| | |
| | | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
| | | |
|
|\ \ \
| |/ /
| | |
| | | |
It was deprecated in 3.4 and undocumented prior to that.
|
|/ /
| |
| |
| |
| | |
parameter now raises a DeprecationWarning. It was deprecated in 3.4.
It was never documented prior to that.
|
| |
| |
| |
| | |
program
|
| | |
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Based on patch by Ville Skyttä.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
instead of the generic ProcessTestCase class as they are posix
specific.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| |
| | |
now correctly ignores BrokenPipeError when the child process dies
before .communicate() is called in more (all?) circumstances.
|
| |
| |
| |
| |
| | |
BrokenPipeError when the child process dies before .communicate()
is called in more (all?) circumstances.
|
| |
| |
| |
| | |
error message as some numbers map to multiple names.
|
| |
| |
| |
| | |
when the child process died due to a signal.
|
| |
| |
| |
| |
| | |
Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning
if the child process is still running.
|