[Python-checkins] python/nondist/sandbox/datetime test_both.py,1.1,1.2

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Mon, 25 Nov 2002 19:14:12 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv13704

Modified Files:
	test_both.py 
Log Message:
Use MINYEAR instead of a literal 1.


Index: test_both.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/test_both.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_both.py	26 Nov 2002 01:43:03 -0000	1.1
--- test_both.py	26 Nov 2002 03:14:10 -0000	1.2
***************
*** 76,80 ****
              self.assertEqual(date(year, 1, 1).toordinal(), n)
              # Verify that moving back a day gets to the end of year-1.
!             if year > 1:
                  self.assertEqual(date(year - 1, 12, 31).toordinal(), n-1)
              n += 365
--- 76,80 ----
              self.assertEqual(date(year, 1, 1).toordinal(), n)
              # Verify that moving back a day gets to the end of year-1.
!             if year > MINYEAR:
                  self.assertEqual(date(year - 1, 12, 31).toordinal(), n-1)
              n += 365