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

Function test_comment_in_statement

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

Source from the content-addressed store, hash-verified

453
454
455def test_comment_in_statement() -> None:
456 source = """test(foo=1,
457 # comment 1
458 bar=2)
459"""
460 for line in range(1, 3):
461 assert (
462 str(getstatement(line, source))
463 == "test(foo=1,\n # comment 1\n bar=2)"
464 )
465
466
467def test_source_with_decorator() -> None:

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected