diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-25 01:49:47 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-25 01:49:47 (GMT) |
commit | 6e16f53855d16acb9233e09a219f28b06e2c7925 (patch) | |
tree | d4cf939bccc8ab1996c2b444f4899793b164ff0a | |
parent | e3668e98426e96307b2fb76322080cccd1187835 (diff) | |
download | cpython-6e16f53855d16acb9233e09a219f28b06e2c7925.zip cpython-6e16f53855d16acb9233e09a219f28b06e2c7925.tar.gz cpython-6e16f53855d16acb9233e09a219f28b06e2c7925.tar.bz2 |
Skip test failure under OpenIndiana
-rw-r--r-- | Lib/test/test_import.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index e4922e3..412e6b8 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) |