summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-09 17:40:15 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-09 17:40:15 (GMT)
commit3774977de2995f19c5ef34fadb0b9b4fc2326e6e (patch)
tree753ba0252df43020cad59f7fd253d5e971353c34
parent74529ad3f4a822d10bc9ed2f85875c62989df2c5 (diff)
downloadcpython-3774977de2995f19c5ef34fadb0b9b4fc2326e6e.zip
cpython-3774977de2995f19c5ef34fadb0b9b4fc2326e6e.tar.gz
cpython-3774977de2995f19c5ef34fadb0b9b4fc2326e6e.tar.bz2
Relax timeout tests for weak Windows buildbot
-rw-r--r--Lib/test/test_multiprocessing.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 0db6352..d65cf6e 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -2587,8 +2587,8 @@ class TestWait(unittest.TestCase):
delta = time.time() - start
self.assertEqual(res, [])
- self.assertLess(delta, expected + 0.2)
- self.assertGreater(delta, expected - 0.2)
+ self.assertLess(delta, expected + 0.5)
+ self.assertGreater(delta, expected - 0.5)
b.send(None)
@@ -2597,7 +2597,7 @@ class TestWait(unittest.TestCase):
delta = time.time() - start
self.assertEqual(res, [a])
- self.assertLess(delta, 0.2)
+ self.assertLess(delta, 0.4)
def test_wait_integer(self):
from multiprocessing.connection import wait
@@ -2614,8 +2614,8 @@ class TestWait(unittest.TestCase):
delta = time.time() - start
self.assertEqual(res, [p.sentinel])
- self.assertLess(delta, expected + 1)
- self.assertGreater(delta, expected - 1)
+ self.assertLess(delta, expected + 2)
+ self.assertGreater(delta, expected - 2)
a.send(None)
@@ -2624,7 +2624,7 @@ class TestWait(unittest.TestCase):
delta = time.time() - start
self.assertEqual(res, [p.sentinel, b])
- self.assertLess(delta, 0.2)
+ self.assertLess(delta, 0.4)
b.send(None)
@@ -2633,7 +2633,7 @@ class TestWait(unittest.TestCase):
delta = time.time() - start
self.assertEqual(res, [a, p.sentinel, b])
- self.assertLess(delta, 0.2)
+ self.assertLess(delta, 0.4)
p.join()