SVN: ZODB/branches/3.9/src/ZODB/tests/testDemoStorage.py Work around low resolution of windows clock. :(

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.