From: Antoine Pitrou Date: Wed, 25 Jan 2012 01:49:47 +0000 (+0100) Subject: Skip test failure under OpenIndiana X-Git-Tag: v2.7.3rc1~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e16f53855d16acb9233e09a219f28b06e2c7925;p=python Skip test failure under OpenIndiana --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index e4922e3c8a..412e6b8103 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -1,3 +1,4 @@ +import errno import imp import marshal import os @@ -290,6 +291,10 @@ class ImportTests(unittest.TestCase): os.utime(source, (2 ** 33, 2 ** 33)) except OverflowError: self.skipTest("cannot set modification time to large integer") + except OSError as e: + if e.errno != getattr(errno, 'EOVERFLOW', None): + raise + self.skipTest("cannot set modification time to large integer ({})".format(e)) __import__(TESTFN) # The pyc file was created. os.stat(compiled)