| --- a/Lib/test/test_subprocess.py Wed May 11 22:37:50 2011 +0800 |
| +++ b/Lib/test/test_subprocess.py Wed May 11 18:35:39 2011 +0200 |
| @@ -1590,7 +1590,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): |