summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-01-25 17:01:45 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-01-25 17:01:45 (GMT)
commit33d15f7c85c1700465bc89f896f2bafc58d2b2b5 (patch)
treea29254c1a65bebb15e0a7bc8d3c42794d25aa35a /Lib/importlib
parentdd21f68963c2b17324b6018dbbf1b32b6e88f2c2 (diff)
downloadcpython-33d15f7c85c1700465bc89f896f2bafc58d2b2b5.zip
cpython-33d15f7c85c1700465bc89f896f2bafc58d2b2b5.tar.gz
cpython-33d15f7c85c1700465bc89f896f2bafc58d2b2b5.tar.bz2
Port import fixes from 2.7.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/test/source/test_file_loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/source/test_file_loader.py b/Lib/importlib/test/source/test_file_loader.py
index 912e6c3..c7a7d8f 100644
--- a/Lib/importlib/test/source/test_file_loader.py
+++ b/Lib/importlib/test/source/test_file_loader.py
@@ -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: