Port import fixes from 2.7.

This commit is contained in:
Antoine Pitrou 2012-01-25 18:06:07 +01:00
commit 581616624d
3 changed files with 12 additions and 12 deletions

View file

@ -133,7 +133,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: