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

Commitd15f891

Browse files
committed
macOS needs even more extra time in test_blocking_lock_file
As seen in:https://github.com/EliahKagan/GitPython/actions/runs/7056321920/attempts/1Usually an extra_time of 0.12 (6x) is sufficient for both Windowsand macOS, but sometimes macOS needs even more, so this increasesit to 0.18 (9x) for macOS.
1 parentc16e4f3 commitd15f891

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎test/test_util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,10 @@ 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-
ifos.name=="nt"orsys.platform=="cygwin"orsys.platform=="darwin":
401-
extra_time*=6# NOTE: Indeterministic failures without this...
400+
ifos.name=="nt"orsys.platform=="cygwin":
401+
extra_time*=6# Without this, we get indeterministic failures on Windows.
402+
elifsys.platform=="darwin":
403+
extra_time*=9# The situation on macOS is similar, but with more delay.
402404
self.assertLess(elapsed,wait_time+extra_time)
403405

404406
deftest_user_id(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp