Kaydet (Commit) a6892418 authored tarafından Alexander Belopolsky's avatar Alexander Belopolsky

This should fix mktime test on Windows

üst 31c5dd6b
...@@ -347,7 +347,8 @@ class _Test4dYear(_BaseYearTest): ...@@ -347,7 +347,8 @@ class _Test4dYear(_BaseYearTest):
tt = time.localtime(t) tt = time.localtime(t)
except (OverflowError, ValueError): except (OverflowError, ValueError):
pass 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 # It may not be possible to reliably make mktime return error
# on all platfom. This will make sure that no other exception # on all platfom. This will make sure that no other exception
# than OverflowError is raised for an extreme value. # than OverflowError is raised for an extreme value.
......
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