[tests] Add retry error message to permitted values.
@@ -124,7 +124,11 @@ def test_llvm_download_url_404(site_data):
invalid_url = "https://facebook.com/not/a/valid/url"
with pytest.raises(OSError) as ctx:
run_main("--env=llvm-v0", "--download", invalid_url)
- assert str(ctx.value) == f"GET returned status code 404: {invalid_url}"
+ assert str(
+ ctx.value
+ ) == f"GET returned status code 404: {invalid_url}" or "Max retries exceeded with url" in str(
+ ctx.value
+ )
def test_llvm_download_invalid_protocol(site_data):
