Show More
@@ -599,6 +599,19 b' def doctest_precision():' | |||||
599 | Out[5]: '3.141593e+00' |
|
599 | Out[5]: '3.141593e+00' | |
600 | """ |
|
600 | """ | |
601 |
|
601 | |||
|
602 | def test_debug_magic(): | |||
|
603 | """Test debugging a small code with %debug | |||
|
604 | ||||
|
605 | In [1]: %debug print("a b") | |||
|
606 | NOTE: Enter 'c' at the ipdb> prompt to continue execution. | |||
|
607 | > <string>(1)<module>() | |||
|
608 | ||||
|
609 | ipdb> c | |||
|
610 | a b | |||
|
611 | ||||
|
612 | In [2]: | |||
|
613 | """ | |||
|
614 | ||||
602 | def test_psearch(): |
|
615 | def test_psearch(): | |
603 | with tt.AssertPrints("dict.fromkeys"): |
|
616 | with tt.AssertPrints("dict.fromkeys"): | |
604 | _ip.run_cell("dict.fr*?") |
|
617 | _ip.run_cell("dict.fr*?") |
General Comments 0
You need to be logged in to leave comments.
Login now