From 2512e6d21ca4e9ce9fffa6f5a7b998a5cdebe095 Mon Sep 17 00:00:00 2001
From: PGijsbers
Date: Mon, 16 Jun 2025 10:28:06 +0200
Subject: [PATCH 1/2] update server urls
---
tests/test_datasets/test_dataset_functions.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/test_datasets/test_dataset_functions.py b/tests/test_datasets/test_dataset_functions.py
index a15100070..5dc83aacb 100644
--- a/tests/test_datasets/test_dataset_functions.py
+++ b/tests/test_datasets/test_dataset_functions.py
@@ -335,14 +335,14 @@ def test__download_minio_file_object_does_not_exist(self):
FileNotFoundError,
r"Object at .* does not exist",
_download_minio_file,
- source="http://openml1.win.tue.nl/dataset20/i_do_not_exist.pq",
+ source="http://data.openml.org/dataset20/i_do_not_exist.pq",
destination=self.workdir,
exists_ok=True,
)
def test__download_minio_file_to_directory(self):
_download_minio_file(
- source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
+ source="http://data.openml.org/dataset20/dataset_20.pq",
destination=self.workdir,
exists_ok=True,
)
@@ -353,7 +353,7 @@ def test__download_minio_file_to_directory(self):
def test__download_minio_file_to_path(self):
file_destination = os.path.join(self.workdir, "custom.pq")
_download_minio_file(
- source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
+ source="http://data.openml.org/dataset20/dataset_20.pq",
destination=file_destination,
exists_ok=True,
)
@@ -368,7 +368,7 @@ def test__download_minio_file_raises_FileExists_if_destination_in_use(self):
self.assertRaises(
FileExistsError,
_download_minio_file,
- source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
+ source="http://data.openml.org/dataset20/dataset_20.pq",
destination=str(file_destination),
exists_ok=False,
)
@@ -376,7 +376,7 @@ def test__download_minio_file_raises_FileExists_if_destination_in_use(self):
def test__download_minio_file_works_with_bucket_subdirectory(self):
file_destination = Path(self.workdir, "custom.pq")
_download_minio_file(
- source="http://openml1.win.tue.nl/dataset61/dataset_61.pq",
+ source="http://data.openml.org/dataset61/dataset_61.pq",
destination=file_destination,
exists_ok=True,
)
@@ -386,7 +386,7 @@ def test__download_minio_file_works_with_bucket_subdirectory(self):
def test__get_dataset_parquet_not_cached(self):
description = {
- "oml:parquet_url": "http://openml1.win.tue.nl/dataset20/dataset_20.pq",
+ "oml:parquet_url": "http://data.openml.org/dataset20/dataset_20.pq",
"oml:id": "20",
}
path = _get_dataset_parquet(description, cache_directory=self.workdir)
@@ -400,7 +400,7 @@ def test__get_dataset_parquet_is_cached(self, patch):
"_download_parquet_url should not be called when loading from cache",
)
description = {
- "oml:parquet_url": "http://openml1.win.tue.nl/dataset30/dataset_30.pq",
+ "oml:parquet_url": "http://data.openml.org/dataset30/dataset_30.pq",
"oml:id": "30",
}
path = _get_dataset_parquet(description, cache_directory=None)
@@ -409,7 +409,7 @@ def test__get_dataset_parquet_is_cached(self, patch):
def test__get_dataset_parquet_file_does_not_exist(self):
description = {
- "oml:parquet_url": "http://openml1.win.tue.nl/dataset20/does_not_exist.pq",
+ "oml:parquet_url": "http://data.openml..org/dataset20/does_not_exist.pq",
"oml:id": "20",
}
path = _get_dataset_parquet(description, cache_directory=self.workdir)
From 61b2647562733b5bf05f0b00a4b43d932d05986a Mon Sep 17 00:00:00 2001
From: PGijsbers
Date: Mon, 16 Jun 2025 11:00:09 +0200
Subject: [PATCH 2/2] Update test server url
---
openml/testing.py | 2 +-
tests/test_datasets/test_dataset_functions.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/openml/testing.py b/openml/testing.py
index 9016ff6a9..5d547f482 100644
--- a/openml/testing.py
+++ b/openml/testing.py
@@ -101,7 +101,7 @@ def setUp(self, n_levels: int = 1, tmpdir_suffix: str = "") -> None:
self.cached = True
openml.config.apikey = TestBase.apikey
- self.production_server = "https://openml.org/api/v1/xml"
+ self.production_server = "https://www.openml.org/api/v1/xml"
openml.config.server = TestBase.test_server
openml.config.avoid_duplicate_runs = False
openml.config.set_root_cache_directory(str(self.workdir))
diff --git a/tests/test_datasets/test_dataset_functions.py b/tests/test_datasets/test_dataset_functions.py
index 5dc83aacb..1dc9daab1 100644
--- a/tests/test_datasets/test_dataset_functions.py
+++ b/tests/test_datasets/test_dataset_functions.py
@@ -409,7 +409,7 @@ def test__get_dataset_parquet_is_cached(self, patch):
def test__get_dataset_parquet_file_does_not_exist(self):
description = {
- "oml:parquet_url": "http://data.openml..org/dataset20/does_not_exist.pq",
+ "oml:parquet_url": "http://data.openml.org/dataset20/does_not_exist.pq",
"oml:id": "20",
}
path = _get_dataset_parquet(description, cache_directory=self.workdir)