Mercurial > p > roundup > code
diff test/test_dates.py @ 1941:bcc65c5b86e6
fixed date arithmetic to not allow day-of-month == 0 [SF#853306]
fixed date arithmetic to limit hours-per-day to 24, not 60
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 04 Dec 2003 23:06:53 +0000 |
| parents | 71056b09f2bf |
| children | 98d3bf8ffb19 |
line wrap: on
line diff
--- a/test/test_dates.py Thu Dec 04 02:43:07 2003 +0000 +++ b/test/test_dates.py Thu Dec 04 23:06:53 2003 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_dates.py,v 1.30 2003-11-19 22:53:14 jlgijsbers Exp $ +# $Id: test_dates.py,v 1.31 2003-12-04 23:06:53 richard Exp $ from __future__ import nested_scopes import unittest, time @@ -122,6 +122,8 @@ def testOffsetSub(self): ae = self.assertEqual + date = Date('2000-12-01') - Interval('- 1d') + date = Date('2000-01-01') - Interval('- 2y 2m') ae(str(date), '2002-03-01.00:00:00') date = Date('2000-01-01') - Interval('2m')
