MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_utime_nonexistent

Method test_utime_nonexistent

Lib/test/test_os.py:1041–1046  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1039 self._test_utime_current(set_time)
1040
1041 def test_utime_nonexistent(self):
1042 now = time.time()
1043 filename = 'nonexistent'
1044 with self.assertRaises(FileNotFoundError) as cm:
1045 os.utime(filename, (now, now))
1046 self.assertEqual(cm.exception.filename, filename)
1047
1048 def get_file_system(self, path):
1049 if sys.platform == 'win32':

Callers

nothing calls this directly

Calls 4

utimeMethod · 0.80
timeMethod · 0.45
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected