[Python-checkins] cpython (2.7): Skip test failure under OpenIndiana

antoine.pitrou python-checkins at python.org
Wed Jan 25 02:51:55 CET 2012


http://hg.python.org/cpython/rev/dd1b4fc2d736
changeset: 74601:dd1b4fc2d736
branch: 2.7
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Jan 25 02:49:47 2012 +0100
summary:
 Skip test failure under OpenIndiana
files:
 Lib/test/test_import.py | 5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
--- 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 @@
 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)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /