jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / python39 / patches / 37-test-zipfile.patch
blob6e848992e516823e1c641739b5aebec00b3e1e64
1 From OmniOS
3 This test tries to set a file date to 2108-12-30.
4 On illumos, the os.utime() call raises:
5 OSError: [Errno 79] Value too large for defined data type
7 diff -wpruN '--exclude=*.orig' a~/Lib/test/test_zipfile.py a/Lib/test/test_zipfile.py
8 --- a~/Lib/test/test_zipfile.py 1970-01-01 00:00:00
9 +++ a/Lib/test/test_zipfile.py 1970-01-01 00:00:00
10 @@ -616,7 +616,7 @@ class StoredTestsWithSourceFile(Abstract
11 self.skipTest(f'time.localtime({ts}) raises OverflowError')
12 try:
13 os.utime(TESTFN, (ts, ts))
14 - except OverflowError:
15 + except (OverflowError, OSError):
16 self.skipTest('Host fs cannot set timestamp to required value.')
18 mtime_ns = os.stat(TESTFN).st_mtime_ns