From: Alexander Belopolsky Date: Tue, 11 Jan 2011 02:22:16 +0000 (+0000) Subject: This should fix mktime test on Windows X-Git-Tag: v3.2rc1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6892418ad1605bf5f7f669176c68b8738f9f776;p=python This should fix mktime test on Windows --- diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 574a867ce2..7266e27295 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -347,7 +347,8 @@ class _Test4dYear(_BaseYearTest): 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.