Skip to content

Commit

Permalink
Temporarily break test_blocking_lock_file on Windows
Browse files Browse the repository at this point in the history
To compare how much extra wait time Windows and macOS usually need.
  • Loading branch information
EliahKagan committed Dec 1, 2023
1 parent 789baa1 commit f6f335f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def test_blocking_lock_file(self):
self.assertRaises(IOError, wait_lock._obtain_lock)
elapsed = time.time() - start
extra_time = 0.02
if os.name == "nt" or sys.platform == "cygwin":
if sys.platform == "cygwin": # FIXME: Put back native Windows check.
extra_time *= 6 # NOTE: Indeterministic failures without this...
self.assertLess(elapsed, wait_time + extra_time)

Expand Down

0 comments on commit f6f335f

Please sign in to comment.