summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-06-18 15:52:38 -0400
committerGitHub <noreply@github.com>2024-06-18 15:52:38 -0400
commita1b21f526ad5d6807b39d3569845b0cb25b4d1bf (patch)
tree390c8c2096f4c2a964a6d8bb50c5ab2167c77ae5 /tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py
parentc7276d1580126be366fc8669909c02a7f4368fd3 (diff)
parent8381dbd9e258825daff4802c4c44b3d435a7b7e3 (diff)
Merge pull request #16227 from y-bharath14/srib-topotest-e
tests: Avoid importing unused modules
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py')
-rw-r--r--tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py b/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py
index d169245f4e..193f5c8c5f 100644
--- a/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py
+++ b/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py
@@ -130,7 +130,7 @@ def setup_module(mod):
logger.info("Running setup_module() done")
-def teardown_module(mod):
+def teardown_module():
"""
Teardown the pytest environment.
@@ -208,7 +208,7 @@ def test_ospf_redistribution_tc5_p0(request):
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
dut = "r1"
- for num in range(0, nretry):
+ for _ in range(0, nretry):
result = verify_ospf_rib(tgen, dut, input_dict, next_hop=nh, expected=False)
if result is not True:
break
@@ -332,7 +332,7 @@ def test_ospf_redistribution_tc6_p0(request):
assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result)
dut = "r1"
- for num in range(0, nretry):
+ for _ in range(0, nretry):
result = verify_ospf_rib(tgen, dut, input_dict, next_hop=nh, expected=False)
if result is not True:
break