Commit a4e5c719 authored by Barry Warsaw's avatar Barry Warsaw

test_formatdate(): Dang. Typo.

parent 7edd71a9
......@@ -926,7 +926,7 @@ class TestMiscellaneous(unittest.TestCase):
self.assertEqual(gdate, 'Fri, 09 Nov 2001 17:33:52 -0000')
# It's a little tougher to test for localtime, but we'll try. Skip if
# we don't have strptime().
if hasattr(time, 'striptime'):
if hasattr(time, 'strptime'):
gtime = time.strptime(gdate.split()[4], '%H:%M:%S')
ltime = time.strptime(ldate.split()[4], '%H:%M:%S')
zone = ldate.split()[5]
......
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