Commit 437ffbdc authored by Victor Stinner's avatar Victor Stinner

test_selectors: Tolerate 2.0 seconds instead of 1.6 sec for very slow buildbots

parent 3f7e064b
...@@ -347,7 +347,8 @@ class BaseSelectorTestCase(unittest.TestCase): ...@@ -347,7 +347,8 @@ class BaseSelectorTestCase(unittest.TestCase):
self.assertFalse(s.select(1)) self.assertFalse(s.select(1))
t1 = time() t1 = time()
dt = t1 - t0 dt = t1 - t0
self.assertTrue(0.8 <= dt <= 1.6, dt) # Tolerate 2.0 seconds for very slow buildbots
self.assertTrue(0.8 <= dt <= 2.0, dt)
@unittest.skipUnless(hasattr(signal, "alarm"), @unittest.skipUnless(hasattr(signal, "alarm"),
"signal.alarm() required for this test") "signal.alarm() required for this test")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment