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
08b78663
Commit
08b78663
authored
Jun 25, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to reflect fifferences in integer handling between Python 2.4
and 2.5.
parent
21122a05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+6
-6
src/ZODB/tests/testFileStorage.py
src/ZODB/tests/testFileStorage.py
+3
-3
No files found.
src/ZEO/tests/testZEO.py
View file @
08b78663
...
...
@@ -731,8 +731,8 @@ def multiple_storages_invalidation_queue_is_not_insane():
>>> trans, oids = s1.getInvalidations(last)
>>> from ZODB.utils import u64
>>> sorted([
u64(oid
) for (oid, v) in oids])
[10
L, 11L, 12L, 13L, 14L
]
>>> sorted([
int(u64(oid)
) for (oid, v) in oids])
[10
, 11, 12, 13, 14
]
>>> server.close_server()
"""
...
...
@@ -785,8 +785,8 @@ structure using lastTransactions.
>>> from ZODB.utils import u64
>>> sorted([
u64(oid
) for (oid, version) in oids])
[0
L, 92L, 93L, 94L, 95L, 96L, 97L, 98L, 99L, 100L
]
>>> sorted([
int(u64(oid)
) for (oid, version) in oids])
[0
, 92, 93, 94, 95, 96, 97, 98, 99, 100
]
(Note that the fact that we get oids for 92-100 is actually an
artifact of the fact that the FileStorage lastInvalidations method
...
...
@@ -833,8 +833,8 @@ transaction, we'll get a result:
>>> ntid == last[-1]
True
>>> sorted([
u64(oid
) for (oid, version) in oids])
[0
L, 101L, 102L, 103L, 104L
]
>>> sorted([
int(u64(oid)
) for (oid, version) in oids])
[0
, 101, 102, 103, 104
]
"""
...
...
src/ZODB/tests/testFileStorage.py
View file @
08b78663
...
...
@@ -508,11 +508,11 @@ Now, we can call lastInvalidations on it:
True
>>> from ZODB.utils import u64
>>> [[
u64(oid
) for (oid, version) in oids]
>>> [[
int(u64(oid)
) for (oid, version) in oids]
... for (i, oids) in invalidations]
... # doctest: +NORMALIZE_WHITESPACE
[[0
L, 91L], [0L, 92L], [0L, 93L], [0L, 94L], [0L, 95L
],
[0
L, 96L], [0L, 97L], [0L, 98L], [0L, 99L], [0L, 100L
]]
[[0
, 91], [0, 92], [0, 93], [0, 94], [0, 95
],
[0
, 96], [0, 97], [0, 98], [0, 99], [0, 100
]]
If we ask for more transactions than there are, we'll get as many as
there are:
...
...
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