Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 712b14f

Browse files
committed
Troubleshoot issue #13309 on Gentoo buildbot.
1 parent 752c1d4 commit 712b14f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/test/test_time.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def test_strptime(self):
162162
(format, strf_output))
163163

164164
# XXX Temporary tests to troubleshoot issue #13309 on buildbots
165-
test_aaa_strptime = test_strptime
166-
test_bbb_strptime = test_strptime
165+
test_maa_strptime = test_strptime
166+
test_mzz_strptime = test_strptime
167167

168168
def test_strptime_bytes(self):
169169
# Make sure only strings are accepted as arguments to strptime.
@@ -310,6 +310,8 @@ def test_mktime(self):
310310
pass
311311
else:
312312
self.assertEqual(time.mktime(tt), t)
313+
self.assertNotEqual(time.strftime('%Z', time.gmtime(self.t)), 'LMT',
314+
"strftime bug after processing t = %s" % t)
313315
# It may not be possible to reliably make mktime return error
314316
# on all platfom. This will make sure that no other exception
315317
# than OverflowError is raised for an extreme value.

0 commit comments

Comments
 (0)