Skip test failure under OpenIndiana

This commit is contained in:
Antoine Pitrou 2012-01-25 02:49:47 +01:00
parent e3668e9842
commit 6e16f53855
1 changed files with 5 additions and 0 deletions

View File

@ -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)