mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
merge - 7a3f3ad83676 Fixes Issue #12044.
This commit is contained in:
parent
79a11e71c6
commit
c9557af441
4 changed files with 10 additions and 3 deletions
|
@ -1491,7 +1491,8 @@ class ContextManagerTests(ProcessTestCase):
|
|||
def test_returncode(self):
|
||||
with subprocess.Popen([sys.executable, "-c",
|
||||
"import sys; sys.exit(100)"]) as proc:
|
||||
proc.wait()
|
||||
pass
|
||||
# __exit__ calls wait(), so the returncode should be set
|
||||
self.assertEqual(proc.returncode, 100)
|
||||
|
||||
def test_communicate_stdin(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue