[Python-checkins] cpython: Issue #21483: Skip test_timestamp_overflow on NFS.

berker.peksag python-checkins at python.org
Wed Apr 22 10:31:47 CEST 2015


https://hg.python.org/cpython/rev/aa60f4d1a569
changeset:   95766:aa60f4d1a569
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Wed Apr 22 11:32:19 2015 +0300
summary:
  Issue #21483: Skip test_timestamp_overflow on NFS.

Patch by Isaac Schwabacher.

files:
  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
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -291,7 +291,8 @@
             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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list