diff --git a/khiops/core/internals/filesystems.py b/khiops/core/internals/filesystems.py index c83a21cb..287ea395 100644 --- a/khiops/core/internals/filesystems.py +++ b/khiops/core/internals/filesystems.py @@ -444,7 +444,7 @@ def create_child(self, file_name): """ @abstractmethod - def create_parent(self, file_name): + def create_parent(self): """Creates a resource representing the parent of this instance Returns @@ -812,7 +812,7 @@ def __init__(self, uri): def create_child(self, file_name): return create_resource(_child_uri_info(self.uri_info, file_name).geturl()) - def create_parent(self, file_name): # pylint: disable=unused-argument + def create_parent(self): return create_resource(_parent_uri_info(self.uri_info).geturl()) def _uri_parts(self): diff --git a/packaging/conda/meta.yaml b/packaging/conda/meta.yaml index 813d75f4..3d6e0e7a 100644 --- a/packaging/conda/meta.yaml +++ b/packaging/conda/meta.yaml @@ -29,7 +29,7 @@ requirements: - setuptools run: - python >={{ python_min }} - - khiops-core =11.0.1rc2 + - khiops-core =11.0.1rc.2 - pandas >=2.3.3,<4.0.0 - scikit-learn >=1.7.2,<1.9.0 run_constrained: @@ -42,7 +42,6 @@ test: imports: - khiops commands: - - pip check - kh-status - kh-samples --help - kh-download-datasets --help diff --git a/tests/test_remote_access.py b/tests/test_remote_access.py index e72a94ea..16eb7fa1 100644 --- a/tests/test_remote_access.py +++ b/tests/test_remote_access.py @@ -237,10 +237,15 @@ def test_train_predictor_with_remote_access(self): iris_data_dir = fs.get_child_path(kh.get_runner().samples_dir, "Iris") # ask for folder cleaning during tearDown self.folder_name_to_clean_in_teardown = output_dir = fs.get_child_path( + # TODO : use `kh.get_runner().root_temp_dir` instead as soon as + # https://github.com/KhiopsML/khiops-python/issues/593 is fixed + # so that `output_dir` becomes remote (except for Docker) self.results_dir_root(), f"test_{self.remote_access_test_case()}_remote_files_{uuid.uuid4()}", ) + # TODO : remove this block as soon as + # https://github.com/KhiopsML/khiops-python/issues/593 is fixed # Attempt to make local directory if not existing if not fs.exists(output_dir) and fs.is_local_resource(output_dir): fs.make_dir(output_dir)