[Zope3-checkins] CVS: Zope3/src/zope/app/tests -
test_datetimeparse.py:1.5
Garrett Smith
garrett at mojave-corp.com
Tue Sep 23 20:16:27 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/tests
In directory cvs.zope.org:/tmp/cvs-serv2752/src/zope/app/tests
Modified Files:
test_datetimeparse.py
Log Message:
Fixed a minor bug in date parsing - IndexError was raised for short (bad) input.
=== Zope3/src/zope/app/tests/test_datetimeparse.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/tests/test_datetimeparse.py:1.4 Thu May 1 15:35:37 2003
+++ Zope3/src/zope/app/tests/test_datetimeparse.py Tue Sep 23 20:16:26 2003
@@ -67,6 +67,7 @@
def testBad(self):
from zope.app.datetimeutils import time, DateTimeError
+ self.assertRaises(DateTimeError, parse, '1999')
self.assertRaises(DateTimeError, parse, '1999-31-12 1:2:63.456')
self.assertRaises(DateTimeError, parse, '1999-31-13 1:2:3.456')
self.assertRaises(DateTimeError, parse, '1999-2-30 1:2:3.456')
More information about the Zope3-Checkins
mailing list