summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py
diff options
context:
space:
mode:
authorY Bharath <y.bharath@samsung.com>2024-06-15 22:36:32 +0530
committerY Bharath <y.bharath@samsung.com>2024-06-17 15:42:59 +0530
commit8381dbd9e258825daff4802c4c44b3d435a7b7e3 (patch)
tree9e2884a629e76f7b68ea9e40a98c6db7b5411814 /tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py
parent045029e2442dbca3b6e7685438d171fa05c0f968 (diff)
tests: Avoid importing unused modules
Signed-off-by: y-bharath14 <y.bharath@samsung.com>
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