[Python-checkins] os.test_utime_current(): tolerate 50 ms delta (#3646)
Victor Stinner
webhook-mailer at python.org
Mon Sep 18 11:49:48 EDT 2017
https://github.com/python/cpython/commit/a8e7d903d7c4dd3a64412016e9f44f0e75f1fb3f
commit: a8e7d903d7c4dd3a64412016e9f44f0e75f1fb3f
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-09-18T08:49:45-07:00
summary:
os.test_utime_current(): tolerate 50 ms delta (#3646)
files:
M Lib/test/test_os.py
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index c3c82381abf..d7d08cece3c 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -619,14 +619,13 @@ def _test_utime_current(self, set_time):
if not self.support_subsecond(self.fname):
delta = 1.0
- elif os.name == 'nt':
+ else:
# On Windows, the usual resolution of time.time() is 15.6 ms.
# bpo-30649: Tolerate 50 ms for slow Windows buildbots.
+ #
+ # x86 Gentoo Refleaks 3.x once failed with dt=20.2 ms. So use
+ # also 50 ms on other platforms.
delta = 0.050
- else:
- # bpo-30649: PPC64 Fedora 3.x buildbot requires
- # at least a delta of 14 ms
- delta = 0.020
st = os.stat(self.fname)
msg = ("st_time=%r, current=%r, dt=%r"
% (st.st_mtime, current, st.st_mtime - current))
More information about the Python-checkins
mailing list