MCPcopy Index your code
hub / github.com/python/cpython / test_multiline_expression

Method test_multiline_expression

Lib/test/test_compile.py:1974–1982  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1972 column=2, end_column=9, occurrence=2)
1973
1974 def test_multiline_expression(self):
1975 snippet = textwrap.dedent("""\
1976 f(
1977 1, 2, 3, 4
1978 )
1979 """)
1980 compiled_code, _ = self.check_positions_against_ast(snippet)
1981 self.assertOpcodeSourcePositionIs(compiled_code, 'CALL',
1982 line=1, end_line=3, column=0, end_column=1)
1983
1984 @requires_specialization
1985 def test_multiline_boolean_expression(self):

Callers

nothing calls this directly

Calls 3

dedentMethod · 0.45

Tested by

no test coverage detected