summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-11-01 16:42:24 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-11-01 16:42:24 (GMT)
commit725af4dc1d9a1586eef3a2dfd8e8d17f0c96f440 (patch)
treea8a68b2877619cb31bbbfe81c7cb696c57dafa94 /Lib/test/test_time.py
parent050c7e64cddb6669b0d335f3667609a7651052d3 (diff)
downloadcpython-725af4dc1d9a1586eef3a2dfd8e8d17f0c96f440.zip
cpython-725af4dc1d9a1586eef3a2dfd8e8d17f0c96f440.tar.gz
cpython-725af4dc1d9a1586eef3a2dfd8e8d17f0c96f440.tar.bz2
Lowercase the test name, to run last.
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r--Lib/test/test_time.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 4d8b8f5..003856a 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -298,7 +298,7 @@ class TimeTestCase(unittest.TestCase):
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 @@ class TimeTestCase(unittest.TestCase):
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)