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
8195c9bd
Commit
8195c9bd
authored
Nov 22, 2013
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to debug issue #19715
parent
fc3b1d14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_pathlib.py
Lib/test/test_pathlib.py
+6
-2
No files found.
Lib/test/test_pathlib.py
View file @
8195c9bd
...
...
@@ -1382,13 +1382,17 @@ class _BasePathTest(object):
self
.
assertFalse
(
p
.
exists
())
p
.
touch
()
self
.
assertTrue
(
p
.
exists
())
old_mtime
=
p
.
stat
().
st_mtime
st
=
p
.
stat
()
old_mtime
=
st
.
st_mtime
old_mtime_ns
=
st
.
st_mtime_ns
# Rewind the mtime sufficiently far in the past to work around
# filesystem-specific timestamp granularity.
os
.
utime
(
str
(
p
),
(
old_mtime
-
10
,
old_mtime
-
10
))
# The file mtime is refreshed by calling touch() again
p
.
touch
()
self
.
assertGreaterEqual
(
p
.
stat
().
st_mtime
,
old_mtime
)
st
=
p
.
stat
()
self
.
assertGreaterEqual
(
st
.
st_mtime_ns
,
old_mtime_ns
)
self
.
assertGreaterEqual
(
st
.
st_mtime
,
old_mtime
)
p
=
P
/
'newfileB'
self
.
assertFalse
(
p
.
exists
())
p
.
touch
(
mode
=
0o700
,
exist_ok
=
False
)
...
...
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