Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a8e7d903
Commit
a8e7d903
authored
Sep 18, 2017
by
Victor Stinner
Committed by
GitHub
Sep 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os.test_utime_current(): tolerate 50 ms delta (#3646)
parent
e727d41f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Lib/test/test_os.py
Lib/test/test_os.py
+4
-5
No files found.
Lib/test/test_os.py
View file @
a8e7d903
...
...
@@ -619,14 +619,13 @@ class UtimeTests(unittest.TestCase):
if
not
self
.
support_subsecond
(
self
.
fname
):
delta
=
1.0
el
if
os
.
name
==
'nt'
:
el
se
:
# 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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment