Commit a6892418 authored by Alexander Belopolsky's avatar Alexander Belopolsky

This should fix mktime test on Windows

parent 31c5dd6b
......@@ -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.
......
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