Skip to content

Commit e41b13a

Browse files
Merge branch 'develop' of https://github.com/openml/openml-python into fix/docs
2 parents 9292c7e + 1dc97eb commit e41b13a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

openml/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def tearDown(self) -> None:
115115
"""Tear down the test"""
116116
os.chdir(self.cwd)
117117
try:
118-
shutil.rmtree(self.workdir)
118+
shutil.rmtree(self.workdir, ignore_errors=True)
119119
except PermissionError as e:
120120
if os.name != "nt":
121121
# one of the files may still be used by another process

tests/test_openml/test_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_non_writable_home(self, log_handler_mock, warnings_mock):
5454
assert not log_handler_mock.call_args_list[0][1]["create_file_handler"]
5555
assert openml.config._root_cache_directory == Path(td) / "something-else"
5656

57+
@unittest.skipIf(platform.system() != "Linux","XDG only exists for Linux systems.")
5758
def test_XDG_directories_do_not_exist(self):
5859
with tempfile.TemporaryDirectory(dir=self.workdir) as td:
5960
# Save previous state

tests/test_runs/test_run_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ def test_joblib_backends(self, parallel_mock):
18821882
reason="SimpleImputer doesn't handle mixed type DataFrame as input",
18831883
)
18841884
def test_delete_run(self):
1885-
rs = np.random.randint(1, 2**32 - 1)
1885+
rs = np.random.randint(1, 2**31 - 1)
18861886
clf = sklearn.pipeline.Pipeline(
18871887
steps=[
18881888
(f"test_server_imputer_{rs}", SimpleImputer()),

0 commit comments

Comments
 (0)