Skip to content
Snippets Groups Projects
Commit 5f133d4d authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Closinf files

parent 4bef8c46
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,7 @@ class Test_initConstants(unittest.TestCase): ...@@ -60,6 +60,7 @@ class Test_initConstants(unittest.TestCase):
@classmethod @classmethod
def tearDownClass(cls): def tearDownClass(cls):
cls.datasetFile.close()
rm_tmp() rm_tmp()
......
...@@ -74,6 +74,7 @@ class Test_get_classic_db_hdf5(unittest.TestCase): ...@@ -74,6 +74,7 @@ class Test_get_classic_db_hdf5(unittest.TestCase):
self.assertEqual(dataset.dataset, self.dataset_file) self.assertEqual(dataset.dataset, self.dataset_file)
def tearDown(self): def tearDown(self):
self.dataset_file.close()
rm_tmp() rm_tmp()
......
...@@ -279,7 +279,6 @@ class TestRAMDataset(unittest.TestCase): ...@@ -279,7 +279,6 @@ class TestRAMDataset(unittest.TestCase):
def setUpClass(cls): def setUpClass(cls):
cls.rs = np.random.RandomState(42) cls.rs = np.random.RandomState(42)
cls.nb_view = 3 cls.nb_view = 3
cls.file_name = "test.hdf5"
cls.nb_samples = 5 cls.nb_samples = 5
cls.nb_attr = 7 cls.nb_attr = 7
cls.nb_class = 3 cls.nb_class = 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment