mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.)
This commit is contained in:
parent
d4c472c3e2
commit
472c5229c4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue