[Zodb-checkins] CVS: ZODB3/ZODB/tests - TransactionalUndoStorage.py:1.37

Tim Peters tim.one at comcast.net
Fri Jan 16 14:26:08 EST 2004


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv27488/ZODB/tests

Modified Files:
	TransactionalUndoStorage.py 
Log Message:
checkPackAfterUndoDeletion():  the new fix for "redundant" packs caused
trouble here on Windows, due to the poor granulatiry of Windows time.time()
feeding into pack-time selection in this test.  Moved the snooze() from
before pack time selection to after it, which appears to be a sufficient
fix; this can't hurt Linux, because the snooze() calls aren't needed at
all there (but don't hurt either).


=== ZODB3/ZODB/tests/TransactionalUndoStorage.py 1.36 => 1.37 ===
--- ZODB3/ZODB/tests/TransactionalUndoStorage.py:1.36	Wed Dec 24 11:01:58 2003
+++ ZODB3/ZODB/tests/TransactionalUndoStorage.py	Fri Jan 16 14:26:08 2004
@@ -519,8 +519,8 @@
 
         pack_times = []
         def set_pack_time():
-            snooze()
             pack_times.append(time.time())
+            snooze()
 
         root["key0"] = MinPO(0)
         root["key1"] = MinPO(1)




More information about the Zodb-checkins mailing list