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.
2 parents b3262b6 + 2422d5e commit a17b7aaCopy full SHA for a17b7aa
1 file changed
tests/test_datasets/test_dataset_functions.py
@@ -1,5 +1,6 @@
1
import unittest
2
import os
3
+import shutil
4
import sys
5
6
if sys.version_info[0] >= 3:
@@ -26,6 +27,22 @@
26
27
28
class TestOpenMLDataset(TestBase):
29
30
+ def setUp(self):
31
+ super(TestOpenMLDataset, self).setUp()
32
+ self._remove_did1()
33
+
34
+ def tearDown(self):
35
+ super(TestOpenMLDataset, self).tearDown()
36
37
38
+ def _remove_did1(self):
39
+ cache_dir = self.static_cache_dir
40
+ did_1_dir = os.path.join(cache_dir, 'datasets', '1')
41
+ try:
42
+ shutil.rmtree(did_1_dir)
43
+ except:
44
+ pass
45
46
def test__list_cached_datasets(self):
47
openml.config.set_cache_directory(self.static_cache_dir)
48
cached_datasets = openml.datasets.functions._list_cached_datasets()
0 commit comments