projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3668e9
)
Skip test failure under OpenIndiana
author
Antoine Pitrou
<solipsis@pitrou.net>
Wed, 25 Jan 2012 01:49:47 +0000
(
02:49
+0100)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Wed, 25 Jan 2012 01:49:47 +0000
(
02:49
+0100)
Lib/test/test_import.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_import.py
b/Lib/test/test_import.py
index e4922e3c8a22bc02f3413cda8a4891c52d44eb6a..412e6b81039a75f4098b2672f7bd7470bfae17d8 100644
(file)
--- 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)