1 file changed
@@ -397,8 +397,10 @@ def test_blocking_lock_file(self): | |||
| 397 | 397 | self.assertRaises(IOError, wait_lock._obtain_lock) | |
| 398 | 398 | elapsed = time.time() - start | |
| 399 | 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... | ||
| 400 | + if os.name == "nt" or sys.platform == "cygwin": | ||
| 401 | + 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. | ||
| 402 | 404 | self.assertLess(elapsed, wait_time + extra_time) | |
| 403 | 405 | ||
| 404 | 406 | def test_user_id(self): | |
0 commit comments