Skip to content

Commit 49533d3

Browse files
author
Ralf Gommers
committed
MAINT: minor PEP8, test docstring cleanup for previous test_hierarchy commit.
1 parent 3c4bbc8 commit 49533d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scipy/cluster/tests/test_hierarchy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,12 +814,13 @@ def test_leaves_list_iris_average(self):
814814
self.assertTrue((node.pre_order() == leaves_list(Z)).all())
815815

816816
def test_iris_subtree_pre_order(self):
817-
"Tests that pre_order() works when called on sub-trees."
817+
# Tests that pre_order() works when called on sub-trees.
818818
X = eo['iris']
819819
Y = pdist(X)
820820
Z = linkage(X, 'single')
821821
node = to_tree(Z)
822-
self.assertTrue(node.pre_order() == (node.get_left().pre_order() + node.get_right().pre_order()))
822+
self.assertTrue(node.pre_order() == (node.get_left().pre_order()
823+
+ node.get_right().pre_order()))
823824

824825

825826
class TestCorrespond(TestCase):

0 commit comments

Comments
 (0)