Commit 622ce124 authored by Alexander Belopolsky's avatar Alexander Belopolsky

Merged revisions 87921 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87921 | alexander.belopolsky | 2011-01-10 21:22:16 -0500 (Mon, 10 Jan 2011) | 1 line

  This should fix mktime test on Windows
........
parent 4fb96f41
...@@ -240,6 +240,7 @@ class TimeTestCase(unittest.TestCase): ...@@ -240,6 +240,7 @@ class TimeTestCase(unittest.TestCase):
tt = time.localtime(t) tt = time.localtime(t)
except (OverflowError, ValueError): except (OverflowError, ValueError):
pass pass
else:
self.assertEqual(time.mktime(tt), t) self.assertEqual(time.mktime(tt), t)
class TestLocale(unittest.TestCase): class TestLocale(unittest.TestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment