From 7c35ee7c47c123d2432c539a82de8311c789abb6 Mon Sep 17 00:00:00 2001 From: abhamra Date: Thu, 5 Oct 2023 20:34:32 -0400 Subject: [PATCH] retry at fix for F841 error, used noqa --- tests/rustworkx_tests/digraph/test_clear.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/rustworkx_tests/digraph/test_clear.py b/tests/rustworkx_tests/digraph/test_clear.py index 961cf3873..8019911d2 100644 --- a/tests/rustworkx_tests/digraph/test_clear.py +++ b/tests/rustworkx_tests/digraph/test_clear.py @@ -19,8 +19,8 @@ class TestClear(unittest.TestCase): def test_clear(self): dag = rustworkx.PyDAG() node_a = dag.add_node("a") - _node_b = dag.add_child(node_a, "b", {"a": 1}) - _node_c = dag.add_child(node_a, "c", {"a": 2}) + node_b = dag.add_child(node_a, "b", {"a": 1}) # noqa: F841 + node_c = dag.add_child(node_a, "c", {"a": 2}) # noqa: F841 dag.clear() self.assertEqual(dag.num_nodes(), 0) self.assertEqual(dag.num_edges(), 0) @@ -44,8 +44,8 @@ def test_clear_reuse(self): def test_clear_edges(self): dag = rustworkx.PyDAG() node_a = dag.add_node("a") - _node_b = dag.add_child(node_a, "b", {"a": 1}) - _node_c = dag.add_child(node_a, "c", {"a": 2}) + node_b = dag.add_child(node_a, "b", {"a": 1}) # noqa: F841 + node_c = dag.add_child(node_a, "c", {"a": 2}) # noqa: F841 dag.clear_edges() self.assertEqual(dag.num_nodes(), 3) self.assertEqual(dag.num_edges(), 0)