From: Guido van Rossum Date: Tue, 3 Sep 2002 21:10:10 +0000 (+0000) Subject: Delete the %c test from test_date_time() untill Brett Cannon has time X-Git-Tag: v2.3c1~4218 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=472c5229c4876fad95fca103fd81d35b7dd9fc13;p=thirdparty%2FPython%2Fcpython.git Delete the %c test from test_date_time() untill Brett Cannon has time 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.) --- diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index 94a003d58498..4fab085077aa 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -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)