Skip to content

Commit 00d1766

Browse files
authored
[wip] Fix CI (#1402)
1 parent 9219cee commit 00d1766

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

openml/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def setUp(self, n_levels: int = 1, tmpdir_suffix: str = "") -> None:
101101

102102
self.cached = True
103103
openml.config.apikey = TestBase.apikey
104-
self.production_server = "https://openml.org/api/v1/xml"
104+
self.production_server = "https://www.openml.org/api/v1/xml"
105105
openml.config.server = TestBase.test_server
106106
openml.config.avoid_duplicate_runs = False
107107
openml.config.set_root_cache_directory(str(self.workdir))

tests/test_datasets/test_dataset_functions.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,14 @@ def test__download_minio_file_object_does_not_exist(self):
335335
FileNotFoundError,
336336
r"Object at .* does not exist",
337337
_download_minio_file,
338-
source="http://openml1.win.tue.nl/dataset20/i_do_not_exist.pq",
338+
source="http://data.openml.org/dataset20/i_do_not_exist.pq",
339339
destination=self.workdir,
340340
exists_ok=True,
341341
)
342342

343343
def test__download_minio_file_to_directory(self):
344344
_download_minio_file(
345-
source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
345+
source="http://data.openml.org/dataset20/dataset_20.pq",
346346
destination=self.workdir,
347347
exists_ok=True,
348348
)
@@ -353,7 +353,7 @@ def test__download_minio_file_to_directory(self):
353353
def test__download_minio_file_to_path(self):
354354
file_destination = os.path.join(self.workdir, "custom.pq")
355355
_download_minio_file(
356-
source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
356+
source="http://data.openml.org/dataset20/dataset_20.pq",
357357
destination=file_destination,
358358
exists_ok=True,
359359
)
@@ -368,15 +368,15 @@ def test__download_minio_file_raises_FileExists_if_destination_in_use(self):
368368
self.assertRaises(
369369
FileExistsError,
370370
_download_minio_file,
371-
source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
371+
source="http://data.openml.org/dataset20/dataset_20.pq",
372372
destination=str(file_destination),
373373
exists_ok=False,
374374
)
375375

376376
def test__download_minio_file_works_with_bucket_subdirectory(self):
377377
file_destination = Path(self.workdir, "custom.pq")
378378
_download_minio_file(
379-
source="http://openml1.win.tue.nl/dataset61/dataset_61.pq",
379+
source="http://data.openml.org/dataset61/dataset_61.pq",
380380
destination=file_destination,
381381
exists_ok=True,
382382
)
@@ -386,7 +386,7 @@ def test__download_minio_file_works_with_bucket_subdirectory(self):
386386

387387
def test__get_dataset_parquet_not_cached(self):
388388
description = {
389-
"oml:parquet_url": "http://openml1.win.tue.nl/dataset20/dataset_20.pq",
389+
"oml:parquet_url": "http://data.openml.org/dataset20/dataset_20.pq",
390390
"oml:id": "20",
391391
}
392392
path = _get_dataset_parquet(description, cache_directory=self.workdir)
@@ -400,7 +400,7 @@ def test__get_dataset_parquet_is_cached(self, patch):
400400
"_download_parquet_url should not be called when loading from cache",
401401
)
402402
description = {
403-
"oml:parquet_url": "http://openml1.win.tue.nl/dataset30/dataset_30.pq",
403+
"oml:parquet_url": "http://data.openml.org/dataset30/dataset_30.pq",
404404
"oml:id": "30",
405405
}
406406
path = _get_dataset_parquet(description, cache_directory=None)
@@ -409,7 +409,7 @@ def test__get_dataset_parquet_is_cached(self, patch):
409409

410410
def test__get_dataset_parquet_file_does_not_exist(self):
411411
description = {
412-
"oml:parquet_url": "http://openml1.win.tue.nl/dataset20/does_not_exist.pq",
412+
"oml:parquet_url": "http://data.openml.org/dataset20/does_not_exist.pq",
413413
"oml:id": "20",
414414
}
415415
path = _get_dataset_parquet(description, cache_directory=self.workdir)

0 commit comments

Comments
 (0)