Skip to content

Commit a8e7d90

Browse files
authored
os.test_utime_current(): tolerate 50 ms delta (#3646)
1 parent e727d41 commit a8e7d90

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Lib/test/test_os.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,14 +619,13 @@ def _test_utime_current(self, set_time):
619619

620620
if not self.support_subsecond(self.fname):
621621
delta = 1.0
622-
elif os.name == 'nt':
622+
else:
623623
# On Windows, the usual resolution of time.time() is 15.6 ms.
624624
# bpo-30649: Tolerate 50 ms for slow Windows buildbots.
625+
#
626+
# x86 Gentoo Refleaks 3.x once failed with dt=20.2 ms. So use
627+
# also 50 ms on other platforms.
625628
delta = 0.050
626-
else:
627-
# bpo-30649: PPC64 Fedora 3.x buildbot requires
628-
# at least a delta of 14 ms
629-
delta = 0.020
630629
st = os.stat(self.fname)
631630
msg = ("st_time=%r, current=%r, dt=%r"
632631
% (st.st_mtime, current, st.st_mtime - current))

0 commit comments

Comments
 (0)