Commit 5e57571f authored by Antoine Pitrou's avatar Antoine Pitrou

Skip test failure under OpenIndiana

parent d8b90e1d
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment