Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
493
def
test_single_line_else() -> None:
494
source = getstatement(1,
"if False: 2\nelse: 3"
)
495
assert str(source) ==
"else: 3"
496
497
498
def
test_single_line_finally() -> None:
Callers
nothing calls this directly
Calls
1
getstatement
Function · 0.85
Tested by
no test coverage detected