From: Berker Peksag Date: Wed, 22 Apr 2015 08:32:19 +0000 (+0300) Subject: Issue #21483: Skip test_timestamp_overflow on NFS. X-Git-Tag: v3.5.0b1~307 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30912f3db0d53bdb04b51edd0c4c2991fc628b36;p=thirdparty%2FPython%2Fcpython.git Issue #21483: Skip test_timestamp_overflow on NFS. Patch by Isaac Schwabacher. --- diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 5f87d89e3441..ac228ff96f24 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)