Address Victor's comments

This commit is contained in:
Ammar Askar 2020-04-30 14:44:04 -07:00
parent 1071bf5221
commit 91b54fd725
2 changed files with 5 additions and 2 deletions

View File

@ -62,7 +62,10 @@ class CompileallTestsBase:
def test_year_2038_mtime_compilation(self):
# Test to make sure we can handle mtimes larger than what a 32-bit
# signed number can hold as part of bpo-34990
os.utime(self.source_path, (2**32 - 1, 2**32 - 1))
try:
os.utime(self.source_path, (2**32 - 1, 2**32 - 1))
except (OverflowError, OSError):
self.skipTest("filesystem doesn't support timestamps near 2**32")
self.assertTrue(compileall.compile_file(self.source_path))
def test_larger_than_32_bit_times(self):

View File

@ -1,2 +1,2 @@
Fixed a Y2k38 bug in the compileall module where it would fail to compile
files created after 2038.
files with a modification time after the year 2038.