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 28c2d3e commit 4def96aCopy full SHA for 4def96a
sklearn/datasets/tests/test_base.py
@@ -366,4 +366,10 @@ def test_fetch_remote_raise_warnings_with_invalid_url():
366
with pytest.warns(UserWarning, match="Retry downloading") as record:
367
with pytest.raises(HTTPError, match="HTTP Error 404"):
368
_fetch_remote(invalid_remote_file, n_retries=3, delay=0)
369
+
370
+ for r in record:
371
+ assert (
372
+ r.message.args[0]
373
+ == f"Retry downloading from url: {invalid_remote_file.url}"
374
+ )
375
assert len(record) == 3
0 commit comments