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

Function test_multiline

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

Source from the content-addressed store, hash-verified

513
514
515def test_multiline() -> None:
516 source = getstatement(
517 0,
518 """\
519raise ValueError(
520 23
521)
522x = 3
523""",
524 )
525 assert str(source) == "raise ValueError(\n 23\n)"
526
527
528class TestTry:

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected