Skip to content

Commit f8c6355

Browse files
committed
update test_open_url_with_wrong_sha
1 parent fed48a2 commit f8c6355

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_internal/test_io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,7 @@ def test_open_url_with_wrong_sha():
255255
url = "https://example.com/file.txt"
256256
sha = Sha256("0" * 64) # invalid sha256 for testing
257257

258-
with pytest.raises(ValueError, match=f"Failed to fetch {url}."):
258+
with pytest.raises(
259+
httpx.HTTPStatusError, match=f"Client error '404 Not Found' for url '{url}'"
260+
):
259261
_ = _open_url(HttpUrl(url), sha256=sha)

0 commit comments

Comments
 (0)