title: How can you cleanup a Python UnitTest when setUpClass fails?
body: <p>Say I have the following Python UnitTest:</p>
  
  <pre><code>import unittest
  
  def Test(unittest.TestCase):
      @classmethod
      def setUpClass(cls):
          # Get some resources
          ...
  
          if error_occurred:
              assert(False)
  
      @classmethod
      def tearDownClass(cls):
          # release resources
          ...
  </code></pre>
  
  <p>If the setUpClass call fails, the tearDownClass is not called so the resources are never released. This is a problem during a test run if the resources are required by the next test. </p>
  
  <p>Is there a way to do a clean up when the setUpClass call fails?</p>