Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_subprocess.py @ 70049:b00a64a5cb93 3.2
merge - 7a3f3ad83676 Fixes Issue #12044.
| author | Gregory P. Smith <greg@krypto.org> |
|---|---|
| date | Wed, 11 May 2011 22:18:23 -0700 |
| parents | a7363288c8d4 |
| children | 4f248dd34dd9 361f87c8f36a |
line wrap: on
line diff
--- a/Lib/test/test_subprocess.py Wed May 11 14:02:13 2011 -0400 +++ b/Lib/test/test_subprocess.py Wed May 11 22:18:23 2011 -0700 @@ -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):
