Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c16e4f3 commit d15f891Copy full SHA for d15f891
test/test_util.py
@@ -397,8 +397,10 @@ def test_blocking_lock_file(self):
397
self.assertRaises(IOError, wait_lock._obtain_lock)
398
elapsed = time.time() - start
399
extra_time = 0.02
400
- if os.name == "nt" or sys.platform == "cygwin" or sys.platform == "darwin":
401
- extra_time *= 6 # NOTE: Indeterministic failures without this...
+ if os.name == "nt" or sys.platform == "cygwin":
+ extra_time *= 6 # Without this, we get indeterministic failures on Windows.
402
+ elif sys.platform == "darwin":
403
+ extra_time *= 9 # The situation on macOS is similar, but with more delay.
404
self.assertLess(elapsed, wait_time + extra_time)
405
406
def test_user_id(self):
0 commit comments