Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
6fecab32
Commit
6fecab32
authored
Dec 14, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around low resolution of windows clock. :(
parent
d877b6b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/ZODB/tests/testDemoStorage.py
src/ZODB/tests/testDemoStorage.py
+2
-0
No files found.
src/ZODB/tests/testDemoStorage.py
View file @
6fecab32
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment