Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
transaction
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
transaction
Commits
2cd16552
Commit
2cd16552
authored
Jun 08, 2008
by
Christian Theune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test that incorrectly relied on the order of a list that was generated
from a dict.
parent
b25c4aac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
transaction/tests/test_weakset.py
transaction/tests/test_weakset.py
+3
-1
No files found.
transaction/tests/test_weakset.py
View file @
2cd16552
...
...
@@ -55,7 +55,9 @@ class WeakSetTests(unittest.TestCase):
w
.
add
(
dummy3
)
del
dummy3
L
=
[
x
()
for
x
in
w
.
as_weakref_list
()]
self
.
assertEqual
(
L
,
[
dummy
,
dummy2
])
# L is a list, but it does not have a guaranteed order.
self
.
assert_
(
list
,
type
(
L
))
self
.
assertEqual
(
set
(
L
),
set
([
dummy
,
dummy2
]))
def
test_map
(
self
):
w
=
WeakSet
()
...
...
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