From 8381dbd9e258825daff4802c4c44b3d435a7b7e3 Mon Sep 17 00:00:00 2001 From: Y Bharath Date: Sat, 15 Jun 2024 22:36:32 +0530 Subject: tests: Avoid importing unused modules Signed-off-by: y-bharath14 --- tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py') diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py index aba313db9f..21e767522a 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py @@ -121,7 +121,7 @@ def setup_module(mod): logger.info("Running setup_module() done") -def teardown_module(mod): +def teardown_module(): """ Teardown the pytest environment. @@ -193,7 +193,7 @@ def test_ospf_ecmp_tc16_p0(request): step("Verify that route in R2 in stalled with 8 next hops.") nh = [] - for item in range(1, 7): + for _ in range(1, 7): nh.append(topo["routers"]["r0"]["links"]["r1-link1"]["ipv4"].split("/")[0]) nh2 = topo["routers"]["r0"]["links"]["r1"]["ipv4"].split("/")[0] -- cgit v1.2.3