The ipdoctest machinery must handle multiline examples gracefully. In [2]: for i in range(4): ...: print(i) ...: 0 1 2 3
()
| 18 | """ |
| 19 | |
| 20 | def 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 | |
| 32 | def doctest_multiline2(): |
| 33 | """Multiline examples that define functions and print output. |
nothing calls this directly
no outgoing calls
no test coverage detected