diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 782d9f10859..984a87971a8 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -621,8 +621,8 @@ class ProcessTestCase(BaseTestCase): def test_wait_timeout(self): p = subprocess.Popen([sys.executable, - "-c", "import time; time.sleep(1)"]) - self.assertRaises(subprocess.TimeoutExpired, p.wait, timeout=0.1) + "-c", "import time; time.sleep(0.1)"]) + self.assertRaises(subprocess.TimeoutExpired, p.wait, timeout=0.01) self.assertEqual(p.wait(timeout=2), 0)