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

Method test_large_time

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

Source from the content-addressed store, hash-verified

1059 # return None if the filesystem is unknown
1060
1061 def test_large_time(self):
1062 # Many filesystems are limited to the year 2038. At least, the test
1063 # pass with NTFS filesystem.
1064 if self.get_file_system(self.dirname) != "NTFS":
1065 self.skipTest("requires NTFS")
1066
1067 large = 5000000000 # some day in 2128
1068 os.utime(self.fname, (large, large))
1069 self.assertEqual(os.stat(self.fname).st_mtime, large)
1070
1071 def test_utime_invalid_arguments(self):
1072 # seconds and nanoseconds parameters are mutually exclusive

Callers

nothing calls this directly

Calls 5

get_file_systemMethod · 0.95
skipTestMethod · 0.80
utimeMethod · 0.80
assertEqualMethod · 0.45
statMethod · 0.45

Tested by

no test coverage detected