[Zodb-checkins] CVS: Zope3/src/zodb/storage/tests - undo.py:1.13

Tim Peters tim.one at comcast.net
Tue Apr 22 17:50:06 EDT 2003


Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv17003/src/zodb/storage/tests

Modified Files:
	undo.py 
Log Message:
testPackAfterUndoManyTimes():  Was failing on Windows, due to "the usual"
(the coarseness of time.time()).


=== Zope3/src/zodb/storage/tests/undo.py 1.12 => 1.13 ===
--- Zope3/src/zodb/storage/tests/undo.py:1.12	Tue Apr 22 11:23:12 2003
+++ Zope3/src/zodb/storage/tests/undo.py	Tue Apr 22 16:50:05 2003
@@ -573,11 +573,11 @@
         txn.commit()
 
         set_pack_time()
-        
+
         root._p_deactivate()
         cn.sync()
         self.assert_(listeq(root.keys(), ["key0", "key2"]))
-        
+
         L = db.undoInfo()
         db.undo(L[0]["id"])
         txn = get_transaction()
@@ -589,7 +589,7 @@
         root._p_deactivate()
         cn.sync()
         self.assert_(listeq(root.keys(), ["key0", "key1", "key2"]))
-        
+
         for t in pack_times:
             self._storage.pack(t)
 
@@ -627,7 +627,10 @@
 
             self.assertEqual(rt["test"].value, i % 2 and 3 or 1)
             self.assertEqual(rt["test2"].value, 2)
-            
+
+            # Ensure that the pack time is distinguishable from any
+            # timestamps on both sides of it.
+            snooze()
             packtimes.append(time.time())
             snooze()
 




More information about the Zodb-checkins mailing list