summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-01-25 17:06:07 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-01-25 17:06:07 (GMT)
commit581616624da7918e1050f3d02d0fb1e66e68c332 (patch)
tree18f9b7afa5e31154ee7f9859acc553139c09c8fd /Lib
parent61baebd0e125ba281c2b1f40c210ce286e2e4f0d (diff)
parent33d15f7c85c1700465bc89f896f2bafc58d2b2b5 (diff)
downloadcpython-581616624da7918e1050f3d02d0fb1e66e68c332.zip
cpython-581616624da7918e1050f3d02d0fb1e66e68c332.tar.gz
cpython-581616624da7918e1050f3d02d0fb1e66e68c332.tar.bz2
Port import fixes from 2.7.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/importlib/test/source/test_file_loader.py2
-rw-r--r--Lib/test/test_import.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/source/test_file_loader.py b/Lib/importlib/test/source/test_file_loader.py
index 2ca57d0..21e718f 100644
--- a/Lib/importlib/test/source/test_file_loader.py
+++ b/Lib/importlib/test/source/test_file_loader.py
@@ -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:
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index d121ba3..62fdf4b 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -317,7 +317,7 @@ class ImportTests(unittest.TestCase):
with open(source, 'w') as f:
pass
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: