We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e727d41 commit a8e7d90Copy full SHA for a8e7d90
Lib/test/test_os.py
@@ -619,14 +619,13 @@ def _test_utime_current(self, set_time):
619
620
if not self.support_subsecond(self.fname):
621
delta = 1.0
622
- elif os.name == 'nt':
+ else:
623
# On Windows, the usual resolution of time.time() is 15.6 ms.
624
# 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.
628
delta = 0.050
- else:
- # bpo-30649: PPC64 Fedora 3.x buildbot requires
- # at least a delta of 14 ms
629
- delta = 0.020
630
st = os.stat(self.fname)
631
msg = ("st_time=%r, current=%r, dt=%r"
632
% (st.st_mtime, current, st.st_mtime - current))
0 commit comments