summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/ospf.py
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-02-27 22:08:47 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-02-27 22:08:47 +0200
commit0ce6a441e2e3b5316445be5651b8a42876c0b868 (patch)
tree119c021e1594374e4b90de40ea616065fe1708e2 /tests/topotests/lib/ospf.py
parent6e6bde182d78c60f3e6751e55162e3127fba3c95 (diff)
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>
Diffstat (limited to 'tests/topotests/lib/ospf.py')
-rw-r--r--tests/topotests/lib/ospf.py2
1 files changed, 1 insertions, 1 deletions
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