Skip to content

Commit 516ae19

Browse files
committed
Ensure test compares sorted lists.
1 parent 74afa3d commit 516ae19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainx/tests/test_modularity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ def test_apply_module_split():
634634

635635
# Test that the nodes in the split modules are equal to the
636636
# original nodes of the module
637-
npt.assert_equal(np.sort(list(n1)), n1_new)
638-
npt.assert_equal(np.sort(list(n2)), n2_new)
637+
nt.assert_equal(sorted(list(n1)), sorted(n1_new))
638+
nt.assert_equal(sorted(list(n2)), sorted(n2_new))
639639

640640
n_init.sort()
641641
n_all.sort()

0 commit comments

Comments
 (0)