| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
tests. (GH-5930). (GH-5958)
(cherry picked from commit b21d155f57d284aecf9092a9bd24258293965c2f)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 5537646bfacec463b450871dde31cb06c44a0556)
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
|
|
|
|
|
|
| |
Some tests failed when the PATH environment variable contained a path
to an existing file. Fix tests to ignore also NotADirectoryError, not
only FileNotFoundError and PermissionError.
(cherry picked from commit b31206a223955d614d7769f95fb979d60f77bf87)
|
|
|
|
|
|
|
| |
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.
(cherry picked from commit 11045c9d8a21dd9bd182a3939189db02815f9783)
|
|
|
|
|
| |
case env has a bad keys() method. (GH-3580) (#3584)
(cherry picked from commit 0b3a87ef54a0112b74e8a1d8c6f87d10db4239ab)
|
|
|
|
|
|
| |
(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)
|
|
|
|
|
| |
test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().
(cherry picked from commit cc42c121eb5346f673247f95dac575aadb77d66c)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
(cherry picked from commit 7b7c6dcfff6a35333988a3c74c895ed19dff2e09)
|
|
|
|
|
|
| |
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.
(cherry picked from commit cdee3f14f7f4c995e7eedb0bf6a67e260c739f7d)
|
|
|
|
|
|
| |
Windows. (GH-2325) (#2360)
Prevent passing other invalid environment variables and command arguments..
(cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700)
|
|
|
|
|
| |
(GH-1110) (#1186)
(cherry picked from commit 66bffd1)
|
|
|
|
|
| |
PathLike objects (#157) (#323)
(cherry picked from commit d5c11f7ace48701bb950c6345deee88c35c66e26)
|
|\
| |
| |
| | |
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).
|
| | |
|
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Issue #26741.
|
|\ \
| |/ |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
Handle is probably meant to be excluded, and STARTUPINFO will be added to
__all__ in 3.6.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
The OS X buildbots were failing at the second setrlimit() call with EPERM, as
if they were trying to raise the hard limit. The call should be keeping the
hard limit the same and raising the soft limit back to its original value, so
I don't understand the failure.
|
|\ \
| |/ |
|