From 7c5d70611a625ecf265cf5b84fadfcffd0067403 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Fri, 14 Apr 2023 15:13:04 -0400 Subject: [PATCH] tests: fix warning, incorrect use of `is`. Remove the never-executed code. Signed-off-by: Christian Hopps --- tests/topotests/bgp_unique_rid/test_bgp_unique_rid.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/topotests/bgp_unique_rid/test_bgp_unique_rid.py b/tests/topotests/bgp_unique_rid/test_bgp_unique_rid.py index 47b2452b81..f89f3378fb 100644 --- a/tests/topotests/bgp_unique_rid/test_bgp_unique_rid.py +++ b/tests/topotests/bgp_unique_rid/test_bgp_unique_rid.py @@ -847,8 +847,6 @@ def test_bgp_unique_rid_chaos4_p2(): for intf in topo["routers"][rtr]["links"].keys(): topo1["routers"][rtr]["links"][intf].pop("ipv4") topo1["routers"][rtr]["links"][intf].pop("ipv6") - if intf is "lo": - topo1["routers"][rtr]["links"][intf].pop("ipv4") build_config_from_json(tgen, topo1, save_bkup=False)