mirror of
https://github.com/python/cpython.git
synced 2025-08-20 00:32:12 +00:00
Skip test failure under OpenIndiana
This commit is contained in:
parent
e3668e9842
commit
6e16f53855
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import errno
|
||||||
import imp
|
import imp
|
||||||
import marshal
|
import marshal
|
||||||
import os
|
import os
|
||||||
|
@ -290,6 +291,10 @@ class ImportTests(unittest.TestCase):
|
||||||
os.utime(source, (2 ** 33, 2 ** 33))
|
os.utime(source, (2 ** 33, 2 ** 33))
|
||||||
except OverflowError:
|
except OverflowError:
|
||||||
self.skipTest("cannot set modification time to large integer")
|
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)
|
__import__(TESTFN)
|
||||||
# The pyc file was created.
|
# The pyc file was created.
|
||||||
os.stat(compiled)
|
os.stat(compiled)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue