def METHOD_NAME():
    @filter_warnings("default", "message", DeprecationWarning)
    class Test(TestCase):
        @classmethod
        def setUpClass(cls):
            log.append("setup")
            super().setUpClass()
        @classmethod
        def tearDownClass(cls):
            warnings.warn("fail")
            log.append("teardown")
        def runTest(self):
            log.append("test")  # should not get here
    log = []
    result = TestResult()
    TestSuite([Test()]).run(result)
    eq(str(result.errors), Regex(r" in tearDownClass\\n .*Warning: fail"), result)
    eq(log, ["setup", "test"])