Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30912f3

Browse files
committed
Issue #21483: Skip test_timestamp_overflow on NFS.
Patch by Isaac Schwabacher.
1 parent 949c416 commit 30912f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_import/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ def test_timestamp_overflow(self):
291291
except OverflowError:
292292
self.skipTest("cannot set modification time to large integer")
293293
except OSError as e:
294-
if e.errno != getattr(errno, 'EOVERFLOW', None):
294+
if e.errno not in (getattr(errno, 'EOVERFLOW', None),
295+
getattr(errno, 'EINVAL', None)):
295296
raise
296297
self.skipTest("cannot set modification time to large integer ({})".format(e))
297298
__import__(TESTFN)

0 commit comments

Comments
 (0)