MCPcopy
hub / github.com/pytest-dev/pytest / test_single_line_else

Function test_single_line_else

testing/code/test_source.py:493–495  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

491
492
493def test_single_line_else() -> None:
494 source = getstatement(1, "if False: 2\nelse: 3")
495 assert str(source) == "else: 3"
496
497
498def test_single_line_finally() -> None:

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected