merge - 7a3f3ad83676 Fixes Issue #12044.

This commit is contained in:
Gregory P. Smith 2011-05-11 22:18:23 -07:00
parent 79a11e71c6
commit c9557af441
4 changed files with 10 additions and 3 deletions

View file

@ -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):