[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
- Previous message: [Python-checkins] python/nondist/sandbox/datetime test_both.py,NONE,1.1 obj_date.c,1.4,1.5 test_cdatetime.py,1.5,1.6 test_datetime.py,1.46,1.47
- Next message: [Python-checkins] python/nondist/sandbox/datetime obj_delta.c,1.3,1.4 test_both.py,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Python-checkins] python/nondist/sandbox/datetime test_both.py,NONE,1.1 obj_date.c,1.4,1.5 test_cdatetime.py,1.5,1.6 test_datetime.py,1.46,1.47
- Next message: [Python-checkins] python/nondist/sandbox/datetime obj_delta.c,1.3,1.4 test_both.py,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]