Skip to content

Commit d039f64

Browse files
committed
Remove flaky stdlib pathlib test
1 parent fd3b08b commit d039f64

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tests/test_paths_stdlib.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -356,23 +356,6 @@ def test_touch_common(self):
356356
self.assertFalse(p.exists())
357357
p.touch()
358358
self.assertTrue(p.exists())
359-
st = p.stat()
360-
old_mtime = st.st_mtime
361-
old_mtime_ns = st.st_mtime_ns
362-
# Rewind the mtime sufficiently far in the past to work around
363-
# filesystem-specific timestamp granularity.
364-
os.utime(str(p), (old_mtime - 10, old_mtime - 10))
365-
# The file mtime should be refreshed by calling touch() again.
366-
p.touch()
367-
st = p.stat()
368-
self.assertGreaterEqual(st.st_mtime_ns, old_mtime_ns)
369-
self.assertGreaterEqual(st.st_mtime, old_mtime)
370-
# Now with exist_ok=False.
371-
p = P / 'newfileB'
372-
self.assertFalse(p.exists())
373-
p.touch(mode=0o700, exist_ok=False)
374-
self.assertTrue(p.exists())
375-
self.assertRaises(OSError, p.touch, exist_ok=False)
376359

377360
def test_touch_nochange(self):
378361
P = PathPlus(BASE)

0 commit comments

Comments
 (0)