From 94e8feaa9fa447e1a643fcb1b982630fdb895b4a Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 29 Sep 2021 11:49:43 -0400 Subject: [PATCH] tests: fix string comparison in lib/pim.py Use correct string comparison syntax in lib/pim.py Signed-off-by: Mark Stapp --- tests/topotests/lib/pim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/topotests/lib/pim.py b/tests/topotests/lib/pim.py index 9d37088218..944981add4 100644 --- a/tests/topotests/lib/pim.py +++ b/tests/topotests/lib/pim.py @@ -1020,10 +1020,10 @@ def verify_ip_mroutes( if not isinstance(group_addresses, list): group_addresses = [group_addresses] - if not isinstance(iif, list) and iif is not "none": + if not isinstance(iif, list) and iif != "none": iif = [iif] - if not isinstance(oil, list) and oil is not "none": + if not isinstance(oil, list) and oil != "none": oil = [oil] for grp_addr in group_addresses: -- 2.39.5