diff options
Diffstat (limited to 'Lib/test/lock_tests.py')
| -rw-r--r-- | Lib/test/lock_tests.py | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py index 5b1f033..65fa4d8 100644 --- a/Lib/test/lock_tests.py +++ b/Lib/test/lock_tests.py @@ -405,12 +405,13 @@ class EventTests(BaseTestCase):          # cleared before the waiting thread is woken up.          evt = self.eventtype()          results = [] +        timeout = 0.250          N = 5          def f(): -            results.append(evt.wait(1)) +            results.append(evt.wait(timeout * 4))          b = Bunch(f, N)          b.wait_for_started() -        time.sleep(0.5) +        time.sleep(timeout)          evt.set()          evt.clear()          b.wait_for_finished()  | 
