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

Function test_single_line_else

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected