[Python-checkins] python/dist/src/Lib/test test_rfc822.py, 1.20, 1.21

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Sat Aug 7 18:39:13 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16756/Lib/test

Modified Files:
	test_rfc822.py 
Log Message:
Resolution of bug #997368, "strftime() backward compatibility".

Specifically, time.strftime() no longer accepts a 0 in the yday position of a
time tuple, since that can crash some platform strftime() implementations.

parsedate_tz(): Change the return value to return 1 in the yday position.

Update tests in test_rfc822.py and test_email.py


Index: test_rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_rfc822.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** test_rfc822.py	11 Sep 2002 02:32:57 -0000	1.20
--- test_rfc822.py	7 Aug 2004 16:38:40 -0000	1.21
***************
*** 54,58 ****
          if out:
              self.assertEqual(out,
!                              (1999, 1, 13, 23, 57, 35, 0, 0, 0),
                               "date conversion failed")
  
--- 54,58 ----
          if out:
              self.assertEqual(out,
!                              (1999, 1, 13, 23, 57, 35, 0, 1, 0),
                               "date conversion failed")
  



More information about the Python-checkins mailing list