We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c7ec2f commit 5c29144Copy full SHA for 5c29144
1 file changed
Lib/test/test_subprocess.py
@@ -1417,6 +1417,8 @@ def test_wait(self):
1417
def test_wait_timeout(self):
1418
p = subprocess.Popen([sys.executable,
1419
"-c", "import time; time.sleep(0.3)"])
1420
+ with self.assertRaises(subprocess.TimeoutExpired) as c:
1421
+ p.wait(timeout=0)
1422
with self.assertRaises(subprocess.TimeoutExpired) as c:
1423
p.wait(timeout=0.0001)
1424
self.assertIn("0.0001", str(c.exception)) # For coverage of __str__.
0 commit comments