Code

- fixed date arithmetic to not allow day-of-month == 0 (sf bug 853306)
[roundup.git] / test / test_dates.py
index 2c92acaaab33f2b26dd15d268ffc0c8006210d9f..f213360b75e8d6bb5d9e9d43832e9b665b32dec8 100644 (file)
@@ -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 @@ class DateTestCase(unittest.TestCase):
 
     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')