diff --git a/mlresearch/datasets/tests/test_datasets.py b/mlresearch/datasets/tests/test_datasets.py index a88b11a..faf28fa 100644 --- a/mlresearch/datasets/tests/test_datasets.py +++ b/mlresearch/datasets/tests/test_datasets.py @@ -1,3 +1,4 @@ +import warnings from urllib.request import urlopen from urllib.error import URLError import multiprocessing.dummy as mp @@ -32,7 +33,7 @@ def _open_url(url): try: return urlopen(url) except URLError as e: - raise URLError(f"Error for url {url}: {e}") + warnings.warn(f"Error for url {url}: {e}") def test_urls():