Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
3ac356fc
Commit
3ac356fc
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
aac7f410
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 @
3ac356fc
...
...
@@ -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 @
3ac356fc
...
...
@@ -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