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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
af20d2f6
Commit
af20d2f6
authored
Jul 24, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Go back to messing with time
Tp get predictiable time specing to avoid spurious failures.
parent
bda016b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/ZODB/FileStorage/iterator.test
src/ZODB/FileStorage/iterator.test
+13
-0
No files found.
src/ZODB/FileStorage/iterator.test
View file @
af20d2f6
...
...
@@ -6,6 +6,18 @@ special tests.
We
'll make some assertions about time, so we'
ll
take
it
over
:
>>>
now
=
1229959248
>>>
def
faux_time
()
:
...
global
now
...
now
+=
0.1
...
return
now
>>>
import
time
>>>
time_time
=
time
.
time
>>>
if
isinstance
(
time
,
type
)
:
...
time
.
time
=
staticmethod
(
faux_time
)
# Jython
...
else
:
...
time
.
time
=
faux_time
Commit
a
bunch
of
transactions
:
>>>
import
ZODB
.
FileStorage
,
transaction
...
...
@@ -166,4 +178,5 @@ Even if we write more transactions:
..
Cleanup
>>>
time
.
time
=
time_time
>>>
db
.
close
()
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