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 0b989d1 commit e4a6807Copy full SHA for e4a6807
2 files changed
openml/config.py
@@ -28,6 +28,7 @@
28
_TEST_SERVER_NORMAL_USER_KEY = "normaluser"
29
30
TEST_SERVER_URL = "https://test.openml.org"
31
+TEST_SERVER_URL = "http://localhost:8000"
32
33
34
class _Config(TypedDict):
@@ -471,7 +472,9 @@ def get_cache_directory() -> str:
471
472
473
"""
474
url_suffix = urlparse(server).netloc
- reversed_url_suffix = os.sep.join(url_suffix.split(".")[::-1]) # noqa: PTH118
475
+ url_parts = url_suffix.split(".")[::-1]
476
+ url_parts_no_port = [part.split(":")[0] for part in url_parts]
477
+ reversed_url_suffix = os.sep.join(url_parts_no_port) # noqa: PTH118
478
return os.path.join(_root_cache_directory, reversed_url_suffix) # noqa: PTH118
479
480
tests/files/localhost:8080 tests/files/localhosttests/files/localhost:8080 renamed to tests/files/localhost
0 commit comments