[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/DateIndex/tests - test_DateIndex.py:1.5.2.2

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


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

Modified Files:
      Tag: Zope-2_7-branch
	test_DateIndex.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/DateIndex/tests/test_DateIndex.py 1.5.2.1 => 1.5.2.2 ===
--- Zope/lib/python/Products/PluginIndexes/DateIndex/tests/test_DateIndex.py:1.5.2.1	Mon Jul 21 12:36:02 2003
+++ Zope/lib/python/Products/PluginIndexes/DateIndex/tests/test_DateIndex.py	Tue Nov  4 17:10:50 2003
@@ -38,14 +38,14 @@
 class DI_Tests(unittest.TestCase):
     def setUp(self):
         self._values = (
-            (0, Dummy('a', None)),
-            (1, Dummy('b', DateTime(0))),
-            (2, Dummy('c', DateTime('2002-05-08 15:16:17'))),
-            (3, Dummy('d', DateTime('2032-05-08 15:16:17'))),
-            (4, Dummy('e', DateTime('2062-05-08 15:16:17'))),
-            (5, Dummy('e', DateTime('2062-05-08 15:16:17'))),
-            (6, Dummy('f', 1072742620.0)),
-            (7, Dummy('f', 1072742900)),
+            (0, Dummy('a', None)),                            # None
+            (1, Dummy('b', DateTime(0))),                     # 1055335680
+            (2, Dummy('c', DateTime('2002-05-08 15:16:17'))), # 1072667236
+            (3, Dummy('d', DateTime('2032-05-08 15:16:17'))), # 1088737636
+            (4, Dummy('e', DateTime('2062-05-08 15:16:17'))), # 1018883325
+            (5, Dummy('e', DateTime('2062-05-08 15:16:17'))), # 1018883325
+            (6, Dummy('f', 1072742620.0)),                    # 1073545923
+            (7, Dummy('f', 1072742900)),                      # 1073545928
         )
         self._index = DateIndex('date')
         self._noop_req  = {'bar': 123}




More information about the Zope-Checkins mailing list