summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-06-14 10:25:25 +0300
committerGitHub <noreply@github.com>2024-06-14 10:25:25 +0300
commite8ce036a7b49b34e55bf1ebd463a7e1b1744d3ce (patch)
treedb6b1d34dfe6b81afe9cf428804f5c7a0f1b8b59 /tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py
parent7b59adcbcb0a35b04ce168b497f53a0908ee45d5 (diff)
parenta63bfb75669780df7ce29201c87db77b83c6f60a (diff)
Merge pull request #16202 from y-bharath14/srib-topotest-d
tests: suppress unused variables at topotests
Diffstat (limited to 'tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py')
-rw-r--r--tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py b/tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py
index 4883e847c9..09803dfa84 100644
--- a/tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py
+++ b/tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py
@@ -60,7 +60,7 @@ def setup_module(mod):
router_list = tgen.routers()
- for i, (rname, router) in enumerate(router_list.items(), 1):
+ for _, (rname, router) in enumerate(router_list.items(), 1):
router.load_config(
TopoRouter.RD_ZEBRA, os.path.join(CWD, "{}/zebra.conf".format(rname))
)
@@ -97,7 +97,7 @@ def test_bgp_asdot_regex():
logger.info("Check if neighbor sessions are up in {}".format(router1.name))
test_func = partial(_bgp_converge, router1)
- success, result = topotest.run_and_expect(test_func, None, count=15, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=15, wait=0.5)
assert result is None, 'Failed to see BGP convergence in "{}"'.format(router1.name)
logger.info("BGP neighbor session is up in {}".format(router1.name))