MCPcopy Create free account
hub / github.com/ipython/ipython / test_assemble_logical_lines

Function test_assemble_logical_lines

IPython/core/tests/test_inputtransformer.py:362–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360 ], ipt.ipy_prompt)
361
362def test_assemble_logical_lines():
363 tests = \
364 [ [(u"a = \\", None),
365 (u"123", u"a = 123"),
366 ],
367 [(u"a = \\", None), # Test resetting when within a multi-line string
368 (u"12 *\\", None),
369 (None, u"a = 12 *"),
370 ],
371 [(u"# foo\\", u"# foo\\"), # Comments can't be continued like this
372 ],
373 ]
374 for example in tests:
375 transform_checker(example, ipt.assemble_logical_lines)
376
377def test_assemble_python_lines():
378 tests = \

Callers

nothing calls this directly

Calls 1

transform_checkerFunction · 0.85

Tested by

no test coverage detected