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_minimum_holdtime | |
| 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_minimum_holdtime')
| -rwxr-xr-x | tests/topotests/bgp_minimum_holdtime/test_bgp_minimum_holdtime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/bgp_minimum_holdtime/test_bgp_minimum_holdtime.py b/tests/topotests/bgp_minimum_holdtime/test_bgp_minimum_holdtime.py index 9f4d968277..c9ff2ffc7e 100755 --- a/tests/topotests/bgp_minimum_holdtime/test_bgp_minimum_holdtime.py +++ b/tests/topotests/bgp_minimum_holdtime/test_bgp_minimum_holdtime.py @@ -40,7 +40,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)) ) @@ -76,7 +76,7 @@ def test_bgp_minimum_holdtime(): return topotest.json_cmp(output, expected) test_func = functools.partial(_bgp_neighbor_check_if_notification_sent) - success, result = topotest.run_and_expect(test_func, None, count=40, wait=0.5) + _, result = topotest.run_and_expect(test_func, None, count=40, wait=0.5) assert result is None, "Failed to send notification message\n" |
