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
5e23fe69
Commit
5e23fe69
authored
Feb 15, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes comparison to use list(t.items()), since we don't do
comparison yet. Fixed typo in length test.
parent
0a2f7877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/BTrees/tests/testBTrees.py
src/BTrees/tests/testBTrees.py
+4
-3
No files found.
src/BTrees/tests/testBTrees.py
View file @
5e23fe69
...
@@ -134,7 +134,8 @@ class Base:
...
@@ -134,7 +134,8 @@ class Base:
try
:
try
:
root
=
self
.
_getRoot
()
root
=
self
.
_getRoot
()
assert
root
[
't'
]
==
t
#XXX BTree stuff doesn't implement comparison
assert
list
(
root
[
't'
].
items
())
==
list
(
t
.
items
())
finally
:
finally
:
self
.
_closeDB
(
root
)
self
.
_closeDB
(
root
)
self
.
_delDB
()
self
.
_delDB
()
...
@@ -156,7 +157,7 @@ class Base:
...
@@ -156,7 +157,7 @@ class Base:
root
=
self
.
_getRoot
()
root
=
self
.
_getRoot
()
root
[
't'
].
_p_changed
=
None
root
[
't'
].
_p_changed
=
None
get_transaction
().
commit
()
get_transaction
().
commit
()
assert
root
[
't'
]
==
t
assert
list
(
root
[
't'
].
items
())
==
list
(
t
.
items
())
finally
:
finally
:
self
.
_closeDB
(
root
)
self
.
_closeDB
(
root
)
self
.
_delDB
()
self
.
_delDB
()
...
@@ -346,7 +347,7 @@ class SetTests(Base):
...
@@ -346,7 +347,7 @@ class SetTests(Base):
t
=
self
.
t
t
=
self
.
t
r
=
xrange
(
10000
)
r
=
xrange
(
10000
)
for
x
in
r
:
t
.
insert
(
x
)
for
x
in
r
:
t
.
insert
(
x
)
assert
len
(
t
)
==
1000
,
len
(
t
)
assert
len
(
t
)
==
1000
0
,
len
(
t
)
class
BucketTests
(
MappingBase
):
class
BucketTests
(
MappingBase
):
""" Tests common to all buckets """
""" Tests common to all buckets """
...
...
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