Skip to content

Commit 91b54fd

Browse files
committed
Address Victor's comments
1 parent 1071bf5 commit 91b54fd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Lib/test/test_compileall.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ def timestamp_metadata(self):
6262
def test_year_2038_mtime_compilation(self):
6363
# Test to make sure we can handle mtimes larger than what a 32-bit
6464
# signed number can hold as part of bpo-34990
65-
os.utime(self.source_path, (2**32 - 1, 2**32 - 1))
65+
try:
66+
os.utime(self.source_path, (2**32 - 1, 2**32 - 1))
67+
except (OverflowError, OSError):
68+
self.skipTest("filesystem doesn't support timestamps near 2**32")
6669
self.assertTrue(compileall.compile_file(self.source_path))
6770

6871
def test_larger_than_32_bit_times(self):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Fixed a Y2k38 bug in the compileall module where it would fail to compile
2-
files created after 2038.
2+
files with a modification time after the year 2038.

0 commit comments

Comments
 (0)