From d4d1d068dcf4e1aaf93772ccc0824207a21606e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Fran=C3=A7ois=20Natali?= Date: Wed, 27 Jul 2011 21:26:42 +0200 Subject: Issue #11871: In test_threading.BarrierTests, bump the default barrier timeout to avoid timing-dependent failures. --- Lib/test/lock_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py index f0a2411..30148e6 100644 --- a/Lib/test/lock_tests.py +++ b/Lib/test/lock_tests.py @@ -832,12 +832,12 @@ class BarrierTests(BaseTestCase): """ Test the barrier's default timeout """ - #create a barrier with a low default timeout - barrier = self.barriertype(self.N, timeout=0.1) + # create a barrier with a low default timeout + barrier = self.barriertype(self.N, timeout=0.3) def f(): i = barrier.wait() if i == self.N // 2: - # One thread is later than the default timeout of 0.1s. + # One thread is later than the default timeout of 0.3s. time.sleep(1.0) self.assertRaises(threading.BrokenBarrierError, barrier.wait) self.run_threads(f) -- cgit v0.12