[Zodb-checkins] SVN: ZODB/branches/3.9/src/ZODB/tests/testDemoStorage.py Work around low resolution of windows clock. :(

Jim Fulton jim at zope.com
Mon Dec 14 15:25:17 EST 2009


Log message for revision 106503:
  Work around low resolution of windows clock. :(
  

Changed:
  U   ZODB/branches/3.9/src/ZODB/tests/testDemoStorage.py

-=-
Modified: ZODB/branches/3.9/src/ZODB/tests/testDemoStorage.py
===================================================================
--- ZODB/branches/3.9/src/ZODB/tests/testDemoStorage.py	2009-12-14 19:27:08 UTC (rev 106502)
+++ ZODB/branches/3.9/src/ZODB/tests/testDemoStorage.py	2009-12-14 20:25:16 UTC (rev 106503)
@@ -177,6 +177,7 @@
     properly when deferring to a record that is current in the
     base storage.
 
+    >>> import time
     >>> import transaction
     >>> import ZODB.DB
     >>> import ZODB.DemoStorage
@@ -193,6 +194,7 @@
     >>> db = ZODB.DB(storage)
     >>> conn = db.open()
     >>> conn.root()['foo'] = 'baz'
+    >>> time.sleep(.1) # Windows has a low-resolution clock
     >>> transaction.commit()
 
     >>> oid = ZODB.utils.z64



More information about the Zodb-checkins mailing list