]> granicus.if.org Git - python/commitdiff
Delete the %c test from test_date_time() untill Brett Cannon has time
authorGuido van Rossum <guido@python.org>
Tue, 3 Sep 2002 21:10:10 +0000 (21:10 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 3 Sep 2002 21:10:10 +0000 (21:10 +0000)
to fix it.  (It fails when the day of the month is a 1-digit number,
because %c produces space+digit there, while strptime seems to expect
zero+digit somehow.)

Lib/test/test_strptime.py

index 94a003d584982172daa73d44c30b9fc902505a21..4fab085077aa22de668585109a87383d258ec11d 100644 (file)
@@ -55,8 +55,8 @@ class LocaleTime_Tests(unittest.TestCase):
 
     def test_date_time(self):
         # Check that LC_date_time, LC_date, and LC_time are correct
-        strftime_output = time.strftime("%c", self.time_tuple)
-        self.failUnless(strftime_output == time.strftime(self.LT_ins.LC_date_time, self.time_tuple), "LC_date_time incorrect")
+##        strftime_output = time.strftime("%c", self.time_tuple)
+##        self.failUnless(strftime_output == time.strftime(self.LT_ins.LC_date_time, self.time_tuple), "LC_date_time incorrect")
         strftime_output = time.strftime("%x", self.time_tuple)
         self.failUnless(strftime_output == time.strftime(self.LT_ins.LC_date, self.time_tuple), "LC_date incorrect")
         strftime_output = time.strftime("%X", self.time_tuple)