Skip to content

Commit 126d152

Browse files
committed
Use assert in Docker build test
1 parent e8b5ac7 commit 126d152

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/mock_vws/test_docker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ def test_build_and_run(
153153
)
154154
# If this assertion fails, it may be useful to look at the other
155155
# properties of ``exc``.
156-
if not any(
156+
is_windows_container_error = any(
157157
windows_message_substring in exc.msg
158158
for windows_message_substring in windows_message_substrings
159-
):
160-
raise AssertionError(full_log) from exc # pragma: no cover
159+
)
160+
assert is_windows_container_error, full_log
161161
pytest.skip(
162162
reason="We do not currently support using Windows containers."
163163
)

0 commit comments

Comments
 (0)