Skip to content

Commit a6b82f4

Browse files
committed
Revert "debug ci: separate cache for each test-case"
This reverts commit 93155ee.
1 parent d3cc9a7 commit a6b82f4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

openml/testing.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import os
88
import pathlib
99
import shutil
10-
import tempfile
1110
import time
1211
import unittest
1312
from pathlib import Path
@@ -87,10 +86,7 @@ def setUp(self, n_levels: int = 1, tmpdir_suffix: str = "") -> None:
8786
f"Cannot find test cache dir, expected it to be {static_cache_dir}!",
8887
)
8988

90-
self._temp_dir = tempfile.TemporaryDirectory()
91-
self.static_cache_dir = Path(self._temp_dir.name)
92-
shutil.copytree(static_cache_dir, self.static_cache_dir, dirs_exist_ok=True)
93-
89+
self.static_cache_dir = static_cache_dir
9490
self.cwd = Path.cwd()
9591
workdir = Path(__file__).parent.absolute()
9692
tmp_dir_name = self.id() + tmpdir_suffix
@@ -125,7 +121,6 @@ def tearDown(self) -> None:
125121
if os.name != "nt":
126122
# one of the files may still be used by another process
127123
raise e
128-
self._temp_dir.cleanup()
129124

130125
openml.config.connection_n_retries = self.connection_n_retries
131126
openml.config.retry_policy = self.retry_policy

0 commit comments

Comments
 (0)