MCPcopy Create free account
hub / github.com/pytest-dev/pytest / setup_class

Method setup_class

testing/code/test_source.py:557–563  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

555
556class TestTryFinally:
557 def setup_class(self) -> None:
558 self.source = """\
559try:
560 raise ValueError
561finally:
562 raise IndexError(1)
563"""
564
565 def test_body(self) -> None:
566 source = getstatement(1, self.source)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected