Commit 60f999b4 authored by Florent Xicluna's avatar Florent Xicluna

Troubleshoot issue #13309 on Gentoo buildbot.

parent 1b7954c7
...@@ -162,8 +162,8 @@ class TimeTestCase(unittest.TestCase): ...@@ -162,8 +162,8 @@ class TimeTestCase(unittest.TestCase):
(format, strf_output)) (format, strf_output))
# XXX Temporary tests to troubleshoot issue #13309 on buildbots # XXX Temporary tests to troubleshoot issue #13309 on buildbots
test_aaa_strptime = test_strptime test_maa_strptime = test_strptime
test_bbb_strptime = test_strptime test_mzz_strptime = test_strptime
def test_strptime_bytes(self): def test_strptime_bytes(self):
# Make sure only strings are accepted as arguments to strptime. # Make sure only strings are accepted as arguments to strptime.
...@@ -310,6 +310,8 @@ class TimeTestCase(unittest.TestCase): ...@@ -310,6 +310,8 @@ class TimeTestCase(unittest.TestCase):
pass pass
else: else:
self.assertEqual(time.mktime(tt), t) self.assertEqual(time.mktime(tt), t)
self.assertNotEqual(time.strftime('%Z', time.gmtime(self.t)), 'LMT',
"strftime bug after processing t = %s" % 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