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

Function doctest_multiline1

IPython/testing/plugin/test_ipdoctest.py:20–30  ·  view source on GitHub ↗

The ipdoctest machinery must handle multiline examples gracefully. In [2]: for i in range(4): ...: print(i) ...: 0 1 2 3

()

Source from the content-addressed store, hash-verified

18 """
19
20def doctest_multiline1():
21 """The ipdoctest machinery must handle multiline examples gracefully.
22
23 In [2]: for i in range(4):
24 ...: print(i)
25 ...:
26 0
27 1
28 2
29 3
30 """
31
32def doctest_multiline2():
33 """Multiline examples that define functions and print output.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected