| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
To match the documentation updates already made.
Also renames the local variable used within to match
what it actually holds.
(cherry picked from commit 2eb0cb4787d02d995a9bb6dc075983792c12835c)
|
|
|
|
|
|
| |
(GH-3066) (#3388)
Avoid concatenating bytes with str in the typically rare subprocess error path (exec failed). Includes a mock based unittest to exercise the codepath.
(cherry picked from commit 3fc499bca18454b9f432b9b0106cab662bfeb549)
|
|
|
|
|
|
|
|
|
|
| |
* [3.6] bpo-22536: Set the filename in FileNotFoundError. (GH-3194)
Have the subprocess module set the filename in the FileNotFoundError
exception raised on POSIX systems when the executable or cwd are missing.
(cherry picked from commit 8621bb5d93239316f97281826461b85072ff6db7)
* bpo-22536 [3.6] (GH-3202) skip non-windows tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-30121: Fix debug assert in subprocess on Windows (#1224)
* 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
(cherry picked from commit 4d3851727fb82195e4995c6064b0b2d6cbc031c4)
* Add test_subprocess.test_nonexisting_with_pipes() (#3133)
bpo-30121: Test the Popen failure when Popen was created with pipes.
Create also NONEXISTING_CMD variable in test_subprocess.py.
(cherry picked from commit 9a83f651f31b47b3f6c8b210f7807b26e8c373a5)
|
|
|
|
|
|
| |
Windows. (GH-2325) (#2360)
Prevent passing other invalid environment variables and command arguments..
(cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700)
|
|
|
|
|
|
| |
On Windows, subprocess.Popen.communicate() now also ignore EINVAL
on stdin.write() if the child process is still running but closed the
pipe.
(cherry picked from commit d52aa31378ae43e044a300edfe8285954c167216)
|
|
|
|
|
| |
(GH-1110) (#1186)
(cherry picked from commit 66bffd1)
|
| |
|
|\
| |
| |
| | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
| |
| |
| |
| | |
exited to a stopped instead of terminated state (ex: when under ptrace).
|
| |
| |
| |
| |
| | |
Issue #29174, #26741: subprocess.Popen.__del__() now keeps a strong reference
to warnings.warn() function.
|
| |
| |
| |
| |
| | |
parameter now raises a DeprecationWarning. It was deprecated in 3.4.
It was never documented prior to that.
|
|\| |
|
| |
| |
| |
| | |
Patch by Tim Mitchell.
|
| | |
|
| |
| |
| |
| |
| | |
* Add the process identifier to the warning message
* Add also a comment to explain the issue
|
|\|
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
sets the returncode attribute using the child process exit status when exec
failed.
|
|\| |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Issue #26100:
* Add subprocess._optim_args_from_interpreter_flags()
* Add test.support.optim_args_from_interpreter_flags()
* Use new functions in distutils, test_cmd_line_script, test_compileall and
test_inspect
The change enables test_details() test of test_inspect when -O or -OO command
line option is used.
|
|\
| |
| |
| |
| |
| |
| |
| | |
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests. This simplifies the code.
* assert_python_ok docstring typo fix.
* Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.
|
| |
| |
| |
| |
| |
| | |
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests. This simplifies the code.
|
|\|
| |
| |
| |
| | |
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
|
| |
| |
| |
| |
| | |
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
|
| |
| |
| |
| |
| | |
more consistent API than the existing call* functions.
(enhancement from issue 23342)
|
| |
| |
| |
| | |
It is internal only, not a documented API.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
SubprocessError and TimeoutError in its list of exported names for the
users wild enough to use "from subprocess import *".
MAXFD, mswindows and list2cmdline should be dealt with (renamed or
moved) in separate commits.
Committed at 35,000ft. Thanks chromebook free gogo wifi passes!
|
|\|
| |
| |
| | |
statement if the pipe was broken. Patch by Martin Panter.
|
| |
| |
| |
| | |
statement if the pipe was broken. Patch by Martin Panter.
|
| | |
|
| |
| |
| |
| | |
Use new OSError exceptions, factorize stdin.write() code.
|
|\|
| |
| |
| | |
buffering, rather than block buffering.
|
| |
| |
| |
| | |
buffering, rather than block buffering.
|
| |
| |
| |
| |
| | |
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
|
| |
| |
| |
| | |
class name instead of hardcoded one.
|
| |
| |
| |
| |
| | |
They should have been removed years ago when removing the old pure
Python implementation from the file.
|
|\|
| |
| |
| |
| | |
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value. Fixes issue #21291.
|
| |
| |
| |
| |
| | |
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value. Fixes issue #21291.
|
|/
|
|
|
|
| |
output (alternately bytes or strings)
Patch by Sam Kimbrel.
|
| |
|
|\ |
|
| |
| |
| |
| | |
Patch by Anastasia Filatova.
|
|\|
| |
| |
| |
| | |
ignores OSError(22, 'Invalid argument') when writing input data into stdin,
whereas the process already exited.
|
| |
| |
| |
| |
| | |
OSError(22, 'Invalid argument') when writing input data into stdin, whereas
the process already exited.
|
|\|
| |
| |
| | |
_active shouldn't be cached, it set to None on shutdown.
|