From 6e1527b153c481c51f987a5e3a1bed216b16a260 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Wed, 12 Mar 2025 09:15:58 +0000 Subject: [PATCH] Fix unit test when other warnings are present --- unit_test/options_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_test/options_test.py b/unit_test/options_test.py index a38393f8..0e1c38a4 100644 --- a/unit_test/options_test.py +++ b/unit_test/options_test.py @@ -491,4 +491,4 @@ def test_deprecated_image(image: str, deprecated: bool, capsys: pytest.CaptureFi assert f"Deprecated image {image!r}" in captured.err assert f"{resolved_image!r}" in captured.err else: - assert captured.err == "" + assert "Deprecated image" not in captured.err