diff options
author | Charles-François Natali <neologix@free.fr> | 2011-07-27 19:26:42 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-07-27 19:26:42 (GMT) |
commit | d4d1d068dcf4e1aaf93772ccc0824207a21606e5 (patch) | |
tree | 4424c4f0e9dff3ed2375280939697b53f1edbb09 | |
parent | 27c4e88552662c9b14496d4793e162e6d6481c96 (diff) | |
download | cpython-d4d1d068dcf4e1aaf93772ccc0824207a21606e5.zip cpython-d4d1d068dcf4e1aaf93772ccc0824207a21606e5.tar.gz cpython-d4d1d068dcf4e1aaf93772ccc0824207a21606e5.tar.bz2 |
Issue #11871: In test_threading.BarrierTests, bump the default barrier timeout
to avoid timing-dependent failures.
-rw-r--r-- | Lib/test/lock_tests.py | 6 |
1 files 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) |