Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
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
Kirill Smelkov
BTrees
Commits
06d3daba
Commit
06d3daba
authored
Dec 14, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reify remaining zips.
parent
d92143b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BTrees/tests/common.py
BTrees/tests/common.py
+3
-3
No files found.
BTrees/tests/common.py
View file @
06d3daba
...
...
@@ -457,7 +457,7 @@ class MappingBase(Base):
# For IITreeSets, this one was returning 31 for len(keys), and
# list(keys) produced a list with 100 elements.
t
.
clear
()
t
.
update
(
zip
(
range
(
300
),
range
(
300
)))
t
.
update
(
list
(
zip
(
range
(
300
),
range
(
300
)
)))
keys
=
t
.
keys
(
200
,
50
)
self
.
assertEqual
(
len
(
keys
),
0
)
self
.
assertEqual
(
list
(
keys
),
[])
...
...
@@ -1526,7 +1526,7 @@ class TestLongIntValues(TestLongIntSupport):
# that builds an object of that type given only a list of keys.
def
makeBuilder
(
mapbuilder
):
def
result
(
keys
=
[],
mapbuilder
=
mapbuilder
):
return
mapbuilder
(
zip
(
keys
,
keys
))
return
mapbuilder
(
list
(
zip
(
keys
,
keys
)
))
return
result
# Subclasses have to set up:
...
...
@@ -1730,7 +1730,7 @@ class Weighted(object):
# If obj is a set, return a bucket with values all 1; else return obj.
def
_normalize
(
self
,
obj
):
if
isaset
(
obj
):
obj
=
self
.
mkbucket
(
zip
(
obj
,
[
1
]
*
len
(
obj
)))
obj
=
self
.
mkbucket
(
list
(
zip
(
obj
,
[
1
]
*
len
(
obj
)
)))
return
obj
# Python simulation of weightedUnion.
...
...
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