summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-04-22 08:32:19 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-04-22 08:32:19 (GMT)
commit30912f3db0d53bdb04b51edd0c4c2991fc628b36 (patch)
tree7e1a84321e81f8b298cae3ca4aefbe1437a57e5c /Lib/test/test_import
parent949c416dc61faa6dad398bc5a34781ff152ddc23 (diff)
downloadcpython-30912f3db0d53bdb04b51edd0c4c2991fc628b36.zip
cpython-30912f3db0d53bdb04b51edd0c4c2991fc628b36.tar.gz
cpython-30912f3db0d53bdb04b51edd0c4c2991fc628b36.tar.bz2
Issue #21483: Skip test_timestamp_overflow on NFS.
Patch by Isaac Schwabacher.
Diffstat (limited to 'Lib/test/test_import')
-rw-r--r--Lib/test/test_import/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 5f87d89..ac228ff 100644
--- a/Lib/test/test_import/__init__.py
+++ b/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)