Skip to content

Commit d5d69e2

Browse files
committed
More flexible Windows checks
1 parent a85b53a commit d5d69e2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/mock_vws/test_docker.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,16 @@ def test_build_and_run(
121121
full_log = "\n".join(
122122
[item["stream"] for item in exc.build_log if "stream" in item],
123123
)
124+
windows_message_substrings = (
125+
"no matching manifest for windows/amd64",
126+
"no matching manifest for windows(10.0.26100)/amd64",
127+
)
124128
# If this assertion fails, it may be useful to look at the other
125129
# properties of ``exc``.
126-
if "no matching manifest for windows/amd64" not in exc.msg:
130+
if not any(
131+
windows_message_substring in exc.msg
132+
for windows_message_substring in windows_message_substrings
133+
):
127134
raise AssertionError(full_log) from exc
128135
pytest.skip(
129136
reason="We do not currently support using Windows containers."

0 commit comments

Comments
 (0)