[Python-checkins] cpython: Lowercase the test name, to run last.

florent.xicluna python-checkins at python.org
Tue Nov 1 17:42:33 CET 2011


http://hg.python.org/cpython/rev/a994b0cbe49d
changeset:   73288:a994b0cbe49d
user:        Florent Xicluna <florent.xicluna at gmail.com>
date:        Tue Nov 01 17:42:24 2011 +0100
summary:
  Lowercase the test name, to run last.

files:
  Lib/test/test_time.py |  7 +++----
  1 files changed, 3 insertions(+), 4 deletions(-)


diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -298,7 +298,7 @@
         self.assertAlmostEqual(t1, t0, delta=0.2)
 
     # XXX run last to work around issue #13309 on Gentoo
-    def test_ZZZ_mktime(self):
+    def test_zzz_mktime(self):
         # Issue #1726687
         for t in (-2, -1, 0, 1):
             try:
@@ -317,9 +317,8 @@
             time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1))
         except OverflowError:
             pass
-        msg = "Issue #13309: the '%Z' specifier reports wrong timezone"
-        self.assertEqual(time.strftime('%Z', tt), tzname, msg)
-        tt = time.gmtime(self.t)
+        msg = "Issue #13309: the '%Z' specifier reports erroneous timezone"
+        msg += " after time.mktime((-1, 1, 1, 0, 0, 0, -1, -1, -1))."
         self.assertEqual(time.strftime('%Z', tt), tzname, msg)
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list