summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-09-18 15:49:45 (GMT)
committerGitHub <noreply@github.com>2017-09-18 15:49:45 (GMT)
commita8e7d903d7c4dd3a64412016e9f44f0e75f1fb3f (patch)
tree4148a4bf92543f45d45079f6c116573fd29df863 /Lib/test/test_os.py
parente727d41ffcd91b21ce82026ec8c8381d34a16209 (diff)
downloadcpython-a8e7d903d7c4dd3a64412016e9f44f0e75f1fb3f.zip
cpython-a8e7d903d7c4dd3a64412016e9f44f0e75f1fb3f.tar.gz
cpython-a8e7d903d7c4dd3a64412016e9f44f0e75f1fb3f.tar.bz2
os.test_utime_current(): tolerate 50 ms delta (#3646)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index c3c8238..d7d08ce 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -619,14 +619,13 @@ class UtimeTests(unittest.TestCase):
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))