[Zope3-checkins] CVS: Zope3/src/zodb/storage/tests - version.py:1.6

Tim Peters tim.one@comcast.net
Fri, 14 Mar 2003 15:01:53 -0500


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

Modified Files:
	version.py 
Log Message:
checkPackVersions():  Fixed another time.time() granularity problem
unique to Windows.

FileStoragePacker.pack():  The Windows glitch above provoked this code
into taking unexpected paths, which proved to have bugs of their own.
This fixes one of them (h.back is already a long, so shouldn't be passed
thru U64).  Barry is looking into fixing the rest.


=== Zope3/src/zodb/storage/tests/version.py 1.5 => 1.6 ===
--- Zope3/src/zodb/storage/tests/version.py:1.5	Thu Mar 13 17:04:11 2003
+++ Zope3/src/zodb/storage/tests/version.py	Fri Mar 14 15:01:53 2003
@@ -22,7 +22,7 @@
 from zodb.db import DB
 from zodb.ztransaction import Transaction
 from zodb.storage.tests.minpo import MinPO
-from zodb.storage.tests.base import zodb_unpickle
+from zodb.storage.tests.base import zodb_unpickle, snooze
 from zodb.storage.interfaces import IUndoStorage, IVersionStorage
 
 from transaction import get_transaction
@@ -334,6 +334,7 @@
         txn.note("undo modification")
         txn.commit()
 
+        snooze()
         self._storage.pack(time.time())
 
         db.commitVersion("testversion")