mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
test_formatdate(): Dang. Typo.
This commit is contained in:
parent
7edd71a9f5
commit
a4e5c71962
1 changed files with 1 additions and 1 deletions
|
|
@ -926,7 +926,7 @@ class TestMiscellaneous(unittest.TestCase):
|
||||||
self.assertEqual(gdate, 'Fri, 09 Nov 2001 17:33:52 -0000')
|
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
|
# It's a little tougher to test for localtime, but we'll try. Skip if
|
||||||
# we don't have strptime().
|
# we don't have strptime().
|
||||||
if hasattr(time, 'striptime'):
|
if hasattr(time, 'strptime'):
|
||||||
gtime = time.strptime(gdate.split()[4], '%H:%M:%S')
|
gtime = time.strptime(gdate.split()[4], '%H:%M:%S')
|
||||||
ltime = time.strptime(ldate.split()[4], '%H:%M:%S')
|
ltime = time.strptime(ldate.split()[4], '%H:%M:%S')
|
||||||
zone = ldate.split()[5]
|
zone = ldate.split()[5]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue