]> granicus.if.org Git - python/commit
[3.6] bpo-30121: Fix debug assert in subprocess on Windows (#1224) (#3173)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Aug 2017 22:15:23 +0000 (00:15 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2017 22:15:23 +0000 (00:15 +0200)
commite76cb435563cd14bb085942dfefbb469b8f40aa9
treebe2ac66fd2bf2de02a1a2decdcb2ee0d848a508b
parent12a3e343e1667f91c0095a9a7dc15048cb620e41
[3.6] bpo-30121: Fix debug assert in subprocess on Windows (#1224) (#3173)

* 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)
Lib/subprocess.py
Lib/test/test_subprocess.py