[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/DateRangeIndex/tests - test_DateRangeIndex.py:1.3.68.2

Chris McDonough cvs-admin at zope.org
Tue Nov 4 17:10:52 EST 2003


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/DateRangeIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv27171/lib/python/Products/PluginIndexes/DateRangeIndex/tests

Modified Files:
      Tag: Zope-2_7-branch
	test_DateRangeIndex.py 
Log Message:
Deal with the fact that in Python 2.3, int can return a long instead
of throwing an OverflowError on numbers > sys.maxint.


=== Zope/lib/python/Products/PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py 1.3.68.1 => 1.3.68.2 ===
--- Zope/lib/python/Products/PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py:1.3.68.1	Tue Nov  4 10:01:17 2003
+++ Zope/lib/python/Products/PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py	Tue Nov  4 17:10:51 2003
@@ -113,7 +113,7 @@
                 assert work.getEntryForObject( result ) == match.datum()
 
     def test_longdates( self ):
-        self.assertRaises(ValueError, self._badlong )
+        self.assertRaises(OverflowError, self._badlong )
 
     def _badlong(self):
         work = DateRangeIndex ('work', 'start', 'stop' )




More information about the Zope-Checkins mailing list