Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caba55b commit 7b41dbaCopy full SHA for 7b41dba
1 file changed
Lib/test/test_zipfile.py
@@ -556,7 +556,11 @@ def test_add_file_before_1980(self):
556
557
def test_add_file_after_2107(self):
558
# Set atime and mtime to 2108-12-30
559
- os.utime(TESTFN, (4386268800, 4386268800))
+ try:
560
+ os.utime(TESTFN, (4386268800, 4386268800))
561
+ except OverflowError:
562
+ self.skipTest('Host fs cannot set timestamp to required value.')
563
+
564
with zipfile.ZipFile(TESTFN2, "w") as zipfp:
565
self.assertRaises(struct.error, zipfp.write, TESTFN)
566
0 commit comments