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

Tres Seaver tseaver at zope.com
Mon Dec 22 10:55:16 EST 2003


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

Modified Files:
      Tag: Zope-2_6-branch
	test_DateIndex.py 
Log Message:


 - *Sigh*  fix this again, due to different handling of overflows in
   Python 2.3.


=== Zope/lib/python/Products/PluginIndexes/DateIndex/tests/test_DateIndex.py 1.4.6.2 => 1.4.6.3 ===
--- Zope/lib/python/Products/PluginIndexes/DateIndex/tests/test_DateIndex.py:1.4.6.2	Fri Dec 19 12:26:00 2003
+++ Zope/lib/python/Products/PluginIndexes/DateIndex/tests/test_DateIndex.py	Mon Dec 22 10:55:14 2003
@@ -38,24 +38,24 @@
 class DI_Tests(unittest.TestCase):
     def setUp(self):
         self._values = (
-            (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
+            (0, Dummy('a', None)),
+            (1, Dummy('b', DateTime(0))),
+            (2, Dummy('c', DateTime('2002-05-08 15:16:17'))),
+            (3, Dummy('d', DateTime('2012-05-08 15:16:17'))),
+            (4, Dummy('e', DateTime('2022-05-08 15:16:17'))),
+            (5, Dummy('e', DateTime('2022-05-08 15:16:17'))),
+            (6, Dummy('f', 1072742620.0)),
+            (7, Dummy('f', 1072742900)),
         )
         self._index = DateIndex('date')
         self._noop_req  = {'bar': 123}
         self._request   = {'date': DateTime(0)}
-        self._min_req   = {'date': DateTime('2032-05-08 15:16:17'),
+        self._min_req   = {'date': DateTime('2012-05-08 15:16:17'),
             'date_usage': 'range:min'}
-        self._max_req   = {'date': DateTime('2032-05-08 15:16:17'),
+        self._max_req   = {'date': DateTime('2012-05-08 15:16:17'),
             'date_usage': 'range:max'}
         self._range_req = {'date': (DateTime('2002-05-08 15:16:17'),
-                                    DateTime('2062-05-08 15:16:17')),
+                                    DateTime('2022-05-08 15:16:17')),
                            'date_usage': 'range:min:max'}
         self._zero_req  = {'date': 0}
         self._none_req  = {'date': None}




More information about the Zope-Checkins mailing list