We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed48a2 commit f8c6355Copy full SHA for f8c6355
tests/test_internal/test_io.py
@@ -255,5 +255,7 @@ def test_open_url_with_wrong_sha():
255
url = "https://example.com/file.txt"
256
sha = Sha256("0" * 64) # invalid sha256 for testing
257
258
- with pytest.raises(ValueError, match=f"Failed to fetch {url}."):
+ with pytest.raises(
259
+ httpx.HTTPStatusError, match=f"Client error '404 Not Found' for url '{url}'"
260
+ ):
261
_ = _open_url(HttpUrl(url), sha256=sha)
0 commit comments