Troubleshoot issue #13309 on Gentoo buildbot.
authorFlorent Xicluna <florent.xicluna@gmail.com>
Tue, 1 Nov 2011 15:07:23 +0000 (16:07 +0100)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Tue, 1 Nov 2011 15:07:23 +0000 (16:07 +0100)
Lib/test/test_time.py

index 92c92e43fda2cd332ed4ea7710e38763499d163b..106d8aa1614a5292c4d06708e45ccd6f7fd0b3ff 100644 (file)
@@ -162,8 +162,8 @@ class TimeTestCase(unittest.TestCase):
                           (format, strf_output))
 
     # XXX Temporary tests to troubleshoot issue #13309 on buildbots
-    test_aaa_strptime = test_strptime
-    test_bbb_strptime = test_strptime
+    test_maa_strptime = test_strptime
+    test_mzz_strptime = test_strptime
 
     def test_strptime_bytes(self):
         # Make sure only strings are accepted as arguments to strptime.
@@ -310,6 +310,8 @@ class TimeTestCase(unittest.TestCase):
                 pass
             else:
                 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
         # on all platfom.  This will make sure that no other exception
         # than OverflowError is raised for an extreme value.