cpython: aa60f4d1a569 (original) (raw)
Mercurial > cpython
changeset 95766:aa60f4d1a569
Issue #21483: Skip test_timestamp_overflow on NFS. Patch by Isaac Schwabacher. [#21483]
Berker Peksag berker.peksag@gmail.com | |
---|---|
date | Wed, 22 Apr 2015 11:32:19 +0300 |
parents | fc36120477ae |
children | 6047f6506af5 |
files | Lib/test/test_import/__init__.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_import/__init__.py 3 |
line wrap: on
line diff
--- 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):[](#l1.7)
if e.errno not in (getattr(errno, 'EOVERFLOW', None),[](#l1.8)
getattr(errno, 'EINVAL', None)):[](#l1.9) raise[](#l1.10) self.skipTest("cannot set modification time to large integer ({})".format(e))[](#l1.11) __import__(TESTFN)[](#l1.12)