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

Method setup_class

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

Source from the content-addressed store, hash-verified

527
528class TestTry:
529 def setup_class(self) -> None:
530 self.source = """\
531try:
532 raise ValueError
533except Something:
534 raise IndexError(1)
535else:
536 raise KeyError()
537"""
538
539 def test_body(self) -> None:
540 source = getstatement(1, self.source)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected