diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2015-04-22 08:32:19 (GMT) |
|---|---|---|
| committer | Berker Peksag <berker.peksag@gmail.com> | 2015-04-22 08:32:19 (GMT) |
| commit | 30912f3db0d53bdb04b51edd0c4c2991fc628b36 (patch) | |
| tree | 7e1a84321e81f8b298cae3ca4aefbe1437a57e5c | |
| parent | 949c416dc61faa6dad398bc5a34781ff152ddc23 (diff) | |
| download | cpython-30912f3db0d53bdb04b51edd0c4c2991fc628b36.zip cpython-30912f3db0d53bdb04b51edd0c4c2991fc628b36.tar.gz cpython-30912f3db0d53bdb04b51edd0c4c2991fc628b36.tar.bz2 | |
Issue #21483: Skip test_timestamp_overflow on NFS.
Patch by Isaac Schwabacher.
| -rw-r--r-- | Lib/test/test_import/__init__.py | 3 |
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) |
