code: def test_class_setup_failure_no_teardown(pytester: Pytester) -> None:
      reprec = pytester.inline_runsource(
          """
          class TestSimpleClassSetup(object):
              clslevel = []
              def setup_class(cls):
                  0/0
  
              def teardown_class(cls):
                  cls.clslevel.append(1)
  
              def test_classlevel(self):
                  pass
  
          def test_cleanup():
              assert not TestSimpleClassSetup.clslevel
      """
      )
      reprec.assertoutcome(failed=1, passed=1)
  
file_path: pytest/testing/test_runner_xunit.py
imports: from typing import List
  import pytest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 5 for calling a global function with example usage: test_class_setup_failure_no_teardown(pytester) without return types