[Python-checkins] python/dist/src/Lib/test test_strptime.py,1.4,1.5

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Tue, 03 Sep 2002 14:10:13 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv25458

Modified Files:
	test_strptime.py 
Log Message:
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.)


Index: test_strptime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_strptime.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_strptime.py	29 Aug 2002 15:25:04 -0000	1.4
--- test_strptime.py	3 Sep 2002 21:10:10 -0000	1.5
***************
*** 56,61 ****
      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("%x", self.time_tuple)
          self.failUnless(strftime_output == time.strftime(self.LT_ins.LC_date, self.time_tuple), "LC_date incorrect")
--- 56,61 ----
      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("%x", self.time_tuple)
          self.failUnless(strftime_output == time.strftime(self.LT_ins.LC_date, self.time_tuple), "LC_date incorrect")