Skip to content

Commit 264677a

Browse files
committed
fixes unit tests
1 parent 8726314 commit 264677a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

openml/runs/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def get_run(run_id):
555555
run : OpenMLRun
556556
Run corresponding to ID, fetched from the server.
557557
"""
558-
run_dir = config.get_cache_directory(), "runs", run_id
558+
run_dir = os.path.join(config.get_cache_directory(), "runs", str(run_id))
559559
run_file = os.path.join(run_dir, "description.xml")
560560

561561
try:

openml/setups/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_setup(setup_id):
8787
OpenMLSetup
8888
an initialized openml setup object
8989
"""
90-
setup_dir = config.get_cache_directory(), "runs", setup_id
90+
setup_dir = os.path.join(config.get_cache_directory(), "setups", str(setup_id))
9191
setup_file = os.path.join(setup_dir, "description.xml")
9292

9393
try:

0 commit comments

Comments
 (0)