diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-25 02:00:57 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-25 02:00:57 (GMT) |
commit | dd21f68963c2b17324b6018dbbf1b32b6e88f2c2 (patch) | |
tree | d29ddbed1e580054967d84495ee5f624568080d2 /Lib/test | |
parent | 05f29b7a3aabc89000cce21d7bfec368f9ba5a26 (diff) | |
download | cpython-dd21f68963c2b17324b6018dbbf1b32b6e88f2c2.zip cpython-dd21f68963c2b17324b6018dbbf1b32b6e88f2c2.tar.gz cpython-dd21f68963c2b17324b6018dbbf1b32b6e88f2c2.tar.bz2 |
Port remaining test fixes, and fix test_importlib too.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | 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 index 95b90b8..3110635 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -11,6 +11,7 @@ import stat import sys import unittest import textwrap +import errno from test.support import ( EnvironmentVarGuard, TESTFN, check_warnings, forget, is_jython, @@ -323,6 +324,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) |