Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc16e4f3

Browse files
committed
Restore longer extra time for Windows, and add for macOS
This undoes the testing breakage of test_blocking_lock_file forWindows, and gives macOS the same amount of extra time as Windows.I had expected that macOS, even though it needs more time thanUbuntu, might not need as much extra time as Windows. That turnedout not to be the case, in the limited testing done so far on CI.Windows, while still slower than Ubuntu and still too slow toreliably pass the test_blocking_lock_file test, was usually fasterthan macOS and passed more often.These relative timings may turn out not to be a trend and only toapply to the current GHA runners. That's probably okay since theadjustment for macOS wasn't present before and is being added toallow newly introduced macOS CI test jobs to pass.That is all in regard to the very specific issue of the extra timerequired for the test_blocking_lock_file test after the lock, whichmakes an assertion about that not taking too long. Regarding theoverall time of entire test jobs, macOS 13 seems to have usuallybeen a little faster than macOS 12, so it is retained. Unlike"macos-latest", which currently is macOS 12, "macos-13" will neverrefer to a later version of the operating system, so the versiongiven in the workflow should be revisited later, at or after thetime "macos-latest" becomes a synonym of "macos-13".
1 parentf6f335f commitc16e4f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def test_blocking_lock_file(self):
397397
self.assertRaises(IOError,wait_lock._obtain_lock)
398398
elapsed=time.time()-start
399399
extra_time=0.02
400-
ifsys.platform=="cygwin":# FIXME: Put back native Windows check.
400+
ifos.name=="nt"orsys.platform=="cygwin"orsys.platform=="darwin":
401401
extra_time*=6# NOTE: Indeterministic failures without this...
402402
self.assertLess(elapsed,wait_time+extra_time)
403403

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp