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

Method test_else

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

Source from the content-addressed store, hash-verified

549 assert str(source) == " raise IndexError(1)"
550
551 def test_else(self) -> None:
552 source = getstatement(5, self.source)
553 assert str(source) == " raise KeyError()"
554
555
556class TestTryFinally:

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected