summaryrefslogtreecommitdiff
path: root/networkx/tests
diff options
context:
space:
mode:
authorDiamondJoseph <53935796+DiamondJoseph@users.noreply.github.com>2022-10-12 21:15:33 +0100
committerGitHub <noreply@github.com>2022-10-12 13:15:33 -0700
commitce692bd3f05900608b829b983838d099b378ca8f (patch)
treed2e4f060ae508058708a77d827198e75ec7a4419 /networkx/tests
parentf8c51e1a47e7ee08b487a8da7d0f087d2d818d8b (diff)
downloadnetworkx-ce692bd3f05900608b829b983838d099b378ca8f.tar.gz
Add missing asserts to tests (#6039)
Fixes gh-5981: Add missing asserts to tests
Diffstat (limited to 'networkx/tests')
-rw-r--r--networkx/tests/test_relabel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/tests/test_relabel.py b/networkx/tests/test_relabel.py
index 9865f651..0ebf4d3e 100644
--- a/networkx/tests/test_relabel.py
+++ b/networkx/tests/test_relabel.py
@@ -187,10 +187,10 @@ class TestRelabel:
K5 = nx.complete_graph(4)
G = nx.complete_graph(4)
G = nx.relabel_nodes(G, {i: i + 1 for i in range(4)}, copy=False)
- nx.is_isomorphic(K5, G)
+ assert nx.is_isomorphic(K5, G)
G = nx.complete_graph(4)
G = nx.relabel_nodes(G, {i: i - 1 for i in range(4)}, copy=False)
- nx.is_isomorphic(K5, G)
+ assert nx.is_isomorphic(K5, G)
def test_relabel_selfloop(self):
G = nx.DiGraph([(1, 1), (1, 2), (2, 3)])