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

Function doctest_tb_plain

IPython/core/tests/test_iplib.py:41–55  ·  view source on GitHub ↗

In [18]: xmode plain Exception reporting mode: Plain In [19]: run simpleerr.py Traceback (most recent call last): ...line 32, in bar(mode) ...line 16, in bar div0() ...line 8, in div0 x/y ZeroDivisionError: ...

()

Source from the content-addressed store, hash-verified

39# and %tb functionality. This is really a mix of testing ultraTB and interactiveshell.
40
41def doctest_tb_plain():
42 """
43In [18]: xmode plain
44Exception reporting mode: Plain
45
46In [19]: run simpleerr.py
47Traceback (most recent call last):
48 ...line 32, in <module>
49 bar(mode)
50 ...line 16, in bar
51 div0()
52 ...line 8, in div0
53 x/y
54ZeroDivisionError: ...
55 """
56
57
58def doctest_tb_context():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected