We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8b5ac7 commit 126d152Copy full SHA for 126d152
1 file changed
tests/mock_vws/test_docker.py
@@ -153,11 +153,11 @@ def test_build_and_run(
153
)
154
# If this assertion fails, it may be useful to look at the other
155
# properties of ``exc``.
156
- if not any(
+ is_windows_container_error = any(
157
windows_message_substring in exc.msg
158
for windows_message_substring in windows_message_substrings
159
- ):
160
- raise AssertionError(full_log) from exc # pragma: no cover
+ )
+ assert is_windows_container_error, full_log
161
pytest.skip(
162
reason="We do not currently support using Windows containers."
163
0 commit comments