File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -356,23 +356,6 @@ def test_touch_common(self):
356
356
self .assertFalse (p .exists ())
357
357
p .touch ()
358
358
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 )
376
359
377
360
def test_touch_nochange (self ):
378
361
P = PathPlus (BASE )
You can’t perform that action at this time.
0 commit comments