diff options
| author | Y Bharath <y.bharath@samsung.com> | 2024-06-12 13:56:34 +0530 |
|---|---|---|
| committer | Y Bharath <y.bharath@samsung.com> | 2024-06-12 13:56:34 +0530 |
| commit | a63bfb75669780df7ce29201c87db77b83c6f60a (patch) | |
| tree | 90ca6e3876d2775c6855ddfdaa1ec3be0b0b4cf6 /tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py | |
| parent | 82dcb1d63e7366ee2b3bd1d6896f64369cbe4d4a (diff) | |
tests: supress unused variables at topotests
For code maintainability, suppressed unused variables with "_"
Signed-off-by: y-bharath14 <y.bharath@samsung.com>
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.py | 4 |
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)) |
