]> granicus.if.org Git - python/commitdiff
test_formatdate(): Dang. Typo.
authorBarry Warsaw <barry@python.org>
Fri, 9 Nov 2001 19:31:34 +0000 (19:31 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 9 Nov 2001 19:31:34 +0000 (19:31 +0000)
Lib/test/test_email.py

index 06925d5862e832115bcc082638f43f82774c8cf6..6a6619988a628e365196cd25f18f878e9d812f36 100644 (file)
@@ -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]