Skip to content

Commit

Permalink
Test failed because dictionary values do not have a set order and com…
Browse files Browse the repository at this point in the history
…pared tuples were out of order. Switched to set and is now working
  • Loading branch information
BebeSparkelSparkel committed Nov 1, 2016
1 parent 30a6a54 commit fe6e36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_treelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def test_filter_nodes(self):
self.assertEqual(tuple(new_tree.filter_nodes(lambda n: False)), ())
self.assertEqual(tuple(new_tree.filter_nodes(lambda n: n.is_root())), (nodes[0],))
self.assertEqual(tuple(new_tree.filter_nodes(lambda n: not n.is_root())), (nodes[1],))
self.assertEqual(tuple(new_tree.filter_nodes(lambda n: True)), tuple(nodes))
self.assertTrue(set(new_tree.filter_nodes(lambda n: True)), set(nodes))

def suite():
suites = [NodeCase, TreeCase]
Expand Down

0 comments on commit fe6e36c

Please sign in to comment.