I am having little trouble using the python setUpClass.
For example consider the following case
class MyTest(unittest.case.TestCase): @classmethod
The best option would be is to add handler for the except which calls tearDownClass and re-raise exception.
@classmethod def setUpClass(cls): try: super(MyTest, cls).setUpClass() # setup routine... except Exception: # pylint: disable = W0703 super(MyTest, cls).tearDownClass() raise