mirror of https://github.com/python/cpython.git
Skip test failure under OpenIndiana
This commit is contained in:
parent
e3668e9842
commit
6e16f53855
|
@ -1,3 +1,4 @@
|
|||
import errno
|
||||
import imp
|
||||
import marshal
|
||||
import os
|
||||
|
@ -290,6 +291,10 @@ def test_timestamp_overflow(self):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue