From 126d1520f89a86664cb65c78c5b8ad9ca45585ea Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Tue, 19 May 2026 12:42:56 +0100 Subject: [PATCH] Use assert in Docker build test --- tests/mock_vws/test_docker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/mock_vws/test_docker.py b/tests/mock_vws/test_docker.py index 1538c274f..74d55b859 100644 --- a/tests/mock_vws/test_docker.py +++ b/tests/mock_vws/test_docker.py @@ -153,11 +153,11 @@ def test_build_and_run( ) # If this assertion fails, it may be useful to look at the other # properties of ``exc``. - if not any( + is_windows_container_error = any( windows_message_substring in exc.msg for windows_message_substring in windows_message_substrings - ): - raise AssertionError(full_log) from exc # pragma: no cover + ) + assert is_windows_container_error, full_log pytest.skip( reason="We do not currently support using Windows containers." )