Browse Source

Issue #21483: Skip test_timestamp_overflow on NFS.

Patch by Isaac Schwabacher.
pull/9921/head
Berker Peksag 11 years ago
parent
commit
30912f3db0
  1. 3
      Lib/test/test_import/__init__.py

3
Lib/test/test_import/__init__.py

@ -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…
Cancel
Save