commit | c9557af441a2030767cb19bbaba06f57905f41fb | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@krypto.org> | Wed May 11 22:18:23 2011 -0700 |
committer | Gregory P. Smith <greg@krypto.org> | Wed May 11 22:18:23 2011 -0700 |
tree | 1142600cdb9c213b9171c9bd8ed5e059e3d24da9 | |
parent | 79a11e71c69b3862fc930a47bd628e481685f93b [diff] [blame] |
merge - 7a3f3ad83676 Fixes Issue #12044.
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 4ec754c..176ff10 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py
@@ -1491,7 +1491,8 @@ 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):