From: Donatas Abraitis Date: Mon, 27 Feb 2023 20:08:47 +0000 (+0200) Subject: tests: Use inequality operator for strings X-Git-Tag: base_9.0~347^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F12911%2Fhead;p=mirror%2Ffrr.git tests: Use inequality operator for strings tests/topotests/lib/ospf.py:2819: SyntaxWarning: "is not" with a literal. Did you mean "!="? _age is not "get" -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html Signed-off-by: Donatas Abraitis --- diff --git a/tests/topotests/lib/ospf.py b/tests/topotests/lib/ospf.py index 7609c7f899..23b1f2e533 100644 --- a/tests/topotests/lib/ospf.py +++ b/tests/topotests/lib/ospf.py @@ -2816,7 +2816,7 @@ def get_ospf_database(tgen, topo, dut, input_dict, vrf=None, lsatype=None, rid=N result = True break if ( - _age is not "get" + _age != "get" and lsa["lsaAge"] == show_ospf_json["routerLinkStates"][rtrlsa][ ospf_area