mirror of
https://github.com/python/cpython.git
synced 2025-09-22 08:23:36 +00:00
Issue #21483: Skip test_timestamp_overflow on NFS.
Patch by Isaac Schwabacher.
This commit is contained in:
parent
949c416dc6
commit
30912f3db0
1 changed files with 2 additions and 1 deletions
|
@ -291,7 +291,8 @@ class ImportTests(unittest.TestCase):
|
|||
except OverflowError:
|
||||
self.skipTest("cannot set modification time to large integer")
|
||||
except OSError as e:
|
||||
if e.errno != getattr(errno, 'EOVERFLOW', None):
|
||||
if e.errno not in (getattr(errno, 'EOVERFLOW', None),
|
||||
getattr(errno, 'EINVAL', None)):
|
||||
raise
|
||||
self.skipTest("cannot set modification time to large integer ({})".format(e))
|
||||
__import__(TESTFN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue