Commit 6fecab32 authored by Jim Fulton's avatar Jim Fulton

Work around low resolution of windows clock. :(

parent d877b6b6
...@@ -177,6 +177,7 @@ def load_before_base_storage_current(): ...@@ -177,6 +177,7 @@ def load_before_base_storage_current():
properly when deferring to a record that is current in the properly when deferring to a record that is current in the
base storage. base storage.
>>> import time
>>> import transaction >>> import transaction
>>> import ZODB.DB >>> import ZODB.DB
>>> import ZODB.DemoStorage >>> import ZODB.DemoStorage
...@@ -193,6 +194,7 @@ def load_before_base_storage_current(): ...@@ -193,6 +194,7 @@ def load_before_base_storage_current():
>>> db = ZODB.DB(storage) >>> db = ZODB.DB(storage)
>>> conn = db.open() >>> conn = db.open()
>>> conn.root()['foo'] = 'baz' >>> conn.root()['foo'] = 'baz'
>>> time.sleep(.1) # Windows has a low-resolution clock
>>> transaction.commit() >>> transaction.commit()
>>> oid = ZODB.utils.z64 >>> oid = ZODB.utils.z64
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment