mirror of
https://github.com/python/cpython.git
synced 2025-09-23 00:43:12 +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:
|
except OverflowError:
|
||||||
self.skipTest("cannot set modification time to large integer")
|
self.skipTest("cannot set modification time to large integer")
|
||||||
except OSError as e:
|
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
|
raise
|
||||||
self.skipTest("cannot set modification time to large integer ({})".format(e))
|
self.skipTest("cannot set modification time to large integer ({})".format(e))
|
||||||
__import__(TESTFN)
|
__import__(TESTFN)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue