summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2011-01-03 00:50:57 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2011-01-03 00:50:57 (GMT)
commitac514c895c5586e7f9880a189203c6da3733b905 (patch)
tree1adad2bc533f2f9dd3f7232cc5606e2f691ac649 /Lib/test/test_os.py
parent8009e8e0e2d9120d2d386bf00d3c02f2e92faf83 (diff)
downloadcpython-ac514c895c5586e7f9880a189203c6da3733b905.zip
cpython-ac514c895c5586e7f9880a189203c6da3733b905.tar.gz
cpython-ac514c895c5586e7f9880a189203c6da3733b905.tar.bz2
Merged revisions 87666 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87666 | amaury.forgeotdarc | 2011-01-03 01:19:11 +0100 (lun., 03 janv. 2011) | 4 lines #8278: In the Windows implementation of stat() and utime(), use time_t instead of int. This gives support for dates after 2038, at least when compiled with VS2003 or later, where time_t is 64bit. ........
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 6f4709d..6f68620 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -322,6 +322,11 @@ class StatAttributeTests(unittest.TestCase):
os.utime(self.fname, (t1, t1))
self.assertEqual(os.stat(self.fname).st_mtime, t1)
+ def test_large_time(self):
+ t1 = 5000000000 # some day in 2128
+ os.utime(self.fname, (t1, t1))
+ self.assertEqual(os.stat(self.fname).st_mtime, t1)
+
def test_1686475(self):
# Verify that an open file can be stat'ed
try: