Skip to content
Snippets Groups Projects
Commit 9198f6bb authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Replaced the self keyword to cls for the class methods

parent 7465d1ff
No related branches found
No related tags found
No related merge requests found
......@@ -9,14 +9,14 @@ class TestBoosting(unittest.TestCase):
"""Class to test the LUT trainer """
@classmethod
def setUpClass(self):
def setUpClass(cls):
# create a single copy of the MNIST database to avoid downloading the packages several times
self.database = bob.learn.boosting.utils.MNIST()
cls.database = bob.learn.boosting.utils.MNIST()
@classmethod
def tearDownClass(self):
def tearDownClass(cls):
# Clean up the mess that we created
del self.database
del cls.database
def _data(self, digits = [3, 0], count = 20):
# get the data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment