Mercurial > p > roundup > code
changeset 3211:e330f751828e maint-0.8
test invalid tuple handling
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Fri, 25 Feb 2005 17:24:53 +0000 |
| parents | 368dbeba7bc0 |
| children | fe8fe2f631a9 |
| files | test/test_dates.py |
| diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_dates.py Fri Feb 25 17:20:42 2005 +0000 +++ b/test/test_dates.py Fri Feb 25 17:24:53 2005 +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.35 2004-11-29 14:34:10 a1s Exp $ +# $Id: test_dates.py,v 1.35.2.1 2005-02-25 17:24:53 a1s Exp $ from __future__ import nested_scopes import unittest, time @@ -62,6 +62,8 @@ def testDateError(self): self.assertRaises(ValueError, Date, "12") + # Date cannot handle dates before UNIX epoch + self.assertRaises(ValueError, Date, (1, 1, 1, 0, 0, 0.0, 0, 1, -1)) def testOffset(self): ae = self.assertEqual @@ -390,4 +392,4 @@ runner = unittest.TextTestRunner() unittest.main(testRunner=runner) -# vim: set filetype=python ts=4 sw=4 et si : +# vim: set filetype=python sts=4 sw=4 et si :
