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
......@@ -9,14 +9,14 @@ class TestBoosting(unittest.TestCase):
"""Class to test the LUT trainer """
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()
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment