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

Function test_debug_magic

IPython/core/tests/test_magic.py:626–636  ·  view source on GitHub ↗

Test debugging a small code with %debug In [1]: with PdbTestInput(['c']): ...: %debug print("a b") #doctest: +ELLIPSIS ...: ... ipdb> c a b In [2]:

()

Source from the content-addressed store, hash-verified

624 """
625
626def test_debug_magic():
627 """Test debugging a small code with %debug
628
629 In [1]: with PdbTestInput(['c']):
630 ...: %debug print("a b") #doctest: +ELLIPSIS
631 ...:
632 ...
633 ipdb> c
634 a b
635 In [2]:
636 """
637
638def test_psearch():
639 with tt.AssertPrints("dict.fromkeys"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected