]> git.puffer.fish Git - mirror/frr.git/commit
tests: pytest does not like return True from a test 13563/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 19 May 2023 16:51:09 +0000 (12:51 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 19 May 2023 16:52:51 +0000 (12:52 -0400)
commit03b53c1229a92cbb16fd4e48a5218c794dafaab0
treed863b4820d200dd622e63484c63d7f3f72199d0a
parent32b20e1ad65e8db2ef80dd39b255f34de2802cd2
tests: pytest does not like return True from a test

From running the test:
bgp_remove_private_as/test_bgp_remove_private_as.py::test_bgp_remove_private_as
  /home/sharpd/.local/lib/python3.10/site-packages/_pytest/python.py:198: PytestReturnNotNoneWarning: Expected None, but bgp_remove_private_as/test_bgp_remove_private_as.py::test_bgp_remove_private_as returned True, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bgp_remove_private_as/test_bgp_remove_private_as.py