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 785213f commit bf6c119Copy full SHA for bf6c119
1 file changed
openml/testing.py
@@ -19,12 +19,12 @@ def setUp(self):
19
# cache
20
self.static_cache_dir = None
21
static_cache_dir = os.path.dirname(os.path.abspath(inspect.getfile(self.__class__)))
22
- for i in range(2):
23
- static_cache_dir = os.path.abspath(os.path.join(static_cache_dir,
24
- '..'))
25
- content = os.listdir(static_cache_dir)
26
- if 'files' in content:
27
- self.static_cache_dir = os.path.join(static_cache_dir, 'files')
+
+ static_cache_dir = os.path.abspath(os.path.join(static_cache_dir, '..'))
+ content = os.listdir(static_cache_dir)
+ if 'files' in content:
+ self.static_cache_dir = os.path.join(static_cache_dir, 'files')
28
if self.static_cache_dir is None:
29
raise ValueError('Cannot find test cache dir!')
30
0 commit comments