[Python-checkins] python/nondist/sandbox/datetime test_both.py,1.51,1.52
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sat, 07 Dec 2002 12:19:04 -0800
- Previous message: [Python-checkins] python/nondist/sandbox/datetime doc.txt,1.26,1.27
- Next message: [Python-checkins] python/nondist/sandbox/datetime doc.txt,1.27,1.28 obj_datetime.c,1.34,1.35 test_both.py,1.52,1.53 test_datetime.py,1.56,1.57
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv24722
Modified Files:
test_both.py
Log Message:
Used True/False instead of 1/0, for clarity.
Index: test_both.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/test_both.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** test_both.py 7 Dec 2002 19:51:18 -0000 1.51
--- test_both.py 7 Dec 2002 20:19:02 -0000 1.52
***************
*** 431,435 ****
# Test every day in a leap-year and a non-leap year.
dim = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
! for year, isleap in (2000, 1), (2002, 0):
n = self.theclass(year, 1, 1).toordinal()
for month, maxday in zip(range(1, 13), dim):
--- 431,435 ----
# Test every day in a leap-year and a non-leap year.
dim = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
! for year, isleap in (2000, True), (2002, False):
n = self.theclass(year, 1, 1).toordinal()
for month, maxday in zip(range(1, 13), dim):
- Previous message: [Python-checkins] python/nondist/sandbox/datetime doc.txt,1.26,1.27
- Next message: [Python-checkins] python/nondist/sandbox/datetime doc.txt,1.27,1.28 obj_datetime.c,1.34,1.35 test_both.py,1.52,1.53 test_datetime.py,1.56,1.57
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]