Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Temporarily break test_blocking_lock_file on Windows
To compare how much extra wait time Windows and macOS usually need.
  • Loading branch information
EliahKagan committed Dec 1, 2023
commit f6f335ffcd55af5367692d338d78cf0465c34514
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