From 30912f3db0d53bdb04b51edd0c4c2991fc628b36 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 22 Apr 2015 11:32:19 +0300 Subject: Issue #21483: Skip test_timestamp_overflow on NFS. Patch by Isaac Schwabacher. --- Lib/test/test_import/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12