Port import fixes from 2.7.

This commit is contained in:
Antoine Pitrou 2012-01-25 18:01:45 +01:00
parent dd21f68963
commit 33d15f7c85
3 changed files with 12 additions and 12 deletions

View file

@ -138,7 +138,7 @@ class SimpleTest(unittest.TestCase):
with open(source, 'w') as f:
f.write("x = 5")
try:
os.utime(source, (2 ** 33, 2 ** 33))
os.utime(source, (2 ** 33 - 5, 2 ** 33 - 5))
except OverflowError:
self.skipTest("cannot set modification time to large integer")
except OSError as e: