mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Tweak subprocess test timeouts to satisfy the buildbot.
This commit is contained in:
parent
80b92d106e
commit
93479ccbf0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue