From e6910f66934d0b1b04b1bb17c9f512bbf9a393e5 Mon Sep 17 00:00:00 2001 From: Aris Tritas Date: Sat, 19 Oct 2024 22:55:59 +0200 Subject: [PATCH] Is pytest.fail the culprit? --- tests/system/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/conftest.py b/tests/system/conftest.py index c6ae6cc1..be3c05b3 100644 --- a/tests/system/conftest.py +++ b/tests/system/conftest.py @@ -129,7 +129,7 @@ async def wait_url_up(url: str | URL) -> None: except httpx.NetworkError as ex: logger.debug("URL %s gave exception %r", url, ex) else: - pytest.fail(f"url {url} still not reachable") + assert False, f"url {url} still not reachable" # noqa: PT015 @pytest.fixture(name="rootdir")