[Python-checkins] r87921 - python/branches/py3k/Lib/test/test_time.py

alexander.belopolsky python-checkins at python.org
Tue Jan 11 03:22:16 CET 2011


Author: alexander.belopolsky
Date: Tue Jan 11 03:22:16 2011
New Revision: 87921

Log:
This should fix mktime test on Windows

Modified:
   python/branches/py3k/Lib/test/test_time.py

Modified: python/branches/py3k/Lib/test/test_time.py
==============================================================================
--- python/branches/py3k/Lib/test/test_time.py	(original)
+++ python/branches/py3k/Lib/test/test_time.py	Tue Jan 11 03:22:16 2011
@@ -347,7 +347,8 @@
                 tt = time.localtime(t)
             except (OverflowError, ValueError):
                 pass
-            self.assertEqual(time.mktime(tt), t)
+            else:
+                self.assertEqual(time.mktime(tt), t)
         # It may not be possible to reliably make mktime return error
         # on all platfom.  This will make sure that no other exception
         # than OverflowError is raised for an extreme value.


More information about the Python-checkins mailing list