]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #21483: Skip test_timestamp_overflow on NFS.
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 22 Apr 2015 08:32:19 +0000 (11:32 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 22 Apr 2015 08:32:19 +0000 (11:32 +0300)
Patch by Isaac Schwabacher.

Lib/test/test_import/__init__.py

index 5f87d89e3441411239288aa75ac0f9158cdfe3d6..ac228ff96f24318fc512aa821c8e4c52e5fe1f6e 100644 (file)
@@ -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)