mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
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 <donatas@opensourcerouting.org>
This commit is contained in:
parent
6e6bde182d
commit
0ce6a441e2
@ -2816,7 +2816,7 @@ def get_ospf_database(tgen, topo, dut, input_dict, vrf=None, lsatype=None, rid=N
|
|||||||
result = True
|
result = True
|
||||||
break
|
break
|
||||||
if (
|
if (
|
||||||
_age is not "get"
|
_age != "get"
|
||||||
and lsa["lsaAge"]
|
and lsa["lsaAge"]
|
||||||
== show_ospf_json["routerLinkStates"][rtrlsa][
|
== show_ospf_json["routerLinkStates"][rtrlsa][
|
||||||
ospf_area
|
ospf_area
|
||||||
|
Loading…
Reference in New Issue
Block a user