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_lu_explicitnull/test_bgp_lu_explicitnull.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_lu_explicitnull/test_bgp_lu_explicitnull.py')
| -rw-r--r-- | tests/topotests/bgp_lu_explicitnull/test_bgp_lu_explicitnull.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/topotests/bgp_lu_explicitnull/test_bgp_lu_explicitnull.py b/tests/topotests/bgp_lu_explicitnull/test_bgp_lu_explicitnull.py index 0656e1ed41..18ffc6a17d 100644 --- a/tests/topotests/bgp_lu_explicitnull/test_bgp_lu_explicitnull.py +++ b/tests/topotests/bgp_lu_explicitnull/test_bgp_lu_explicitnull.py @@ -142,7 +142,7 @@ def test_converge_bgplu(): "192.168.2.2/32", "0", ) - success, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5) + success, _ = topotest.run_and_expect(test_func, None, count=10, wait=0.5) assert success, "r1, prefix 192.168.2.2/32 from r2 not present" # Check r2 gets prefix 192.168.2.1/32 @@ -153,7 +153,7 @@ def test_converge_bgplu(): "192.168.2.1/32", "0", ) - success, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5) + success, _ = topotest.run_and_expect(test_func, None, count=10, wait=0.5) assert success, "r2, prefix 192.168.2.1/32 from r1 not present" @@ -178,7 +178,7 @@ def test_traffic_connectivity(): tgen = get_topogen() func = functools.partial(_check_ping, "r1", "192.168.2.2", "192.168.2.1") # tgen.mininet_cli() - success, result = topotest.run_and_expect(func, None, count=10, wait=0.5) + _, result = topotest.run_and_expect(func, None, count=10, wait=0.5) assert result is None, "r1, ping to 192.168.2.2 from 192.168.2.1 fails" |
