summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2011-01-03 00:40:04 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2011-01-03 00:40:04 (GMT)
commit32e8aab1fbb809f3e4bd0830f0b0602349f21a02 (patch)
treea66058db44aa556e732c999fd1e5a725d106b4b5 /Lib
parentd4bf48bbb3d8aa63e48abafff44928468f593221 (diff)
downloadcpython-32e8aab1fbb809f3e4bd0830f0b0602349f21a02.zip
cpython-32e8aab1fbb809f3e4bd0830f0b0602349f21a02.tar.gz
cpython-32e8aab1fbb809f3e4bd0830f0b0602349f21a02.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')
-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 d30c45d..6ff7add 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -352,6 +352,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: