Skip to content

Commit a116f32

Browse files
committed
Fix a bug where the 'server' would be set to a hard-coded value
1 parent 2512e6d commit a116f32

2 files changed

Lines changed: 2 additions & 2 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 = openml.config.server
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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://data.openml..org/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)