File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -882,12 +882,12 @@ class Breakpoint(Builtin):
882882 variable `PYTHONBREAKPOINT` can be utilized.
883883 </dl>
884884
885+ >> (* Test with a dummy breakpoint. *)
886+ >> SetEnvironment["PYTHONBREAKPOINT" -> "mathics.docpipeline.dummy_breakpoint"]
887+ Out[1]= SetEnvironment[PYTHONBREAKPOINT → mathics.docpipeline.dummy_breakpoint]
885888 >> Breakpoint[]
886- --Return--
887- > mathics/builtin/system.py(891)eval()->None
888- -> breakpoint()
889- (Pdb) c
890- Out[1]= Breakpoint[]
889+ Dummy breakpoint() reached! Returning.
890+ Out[2]= Breakpoint[]
891891 """
892892
893893 summary_text = "invoke a Python breakpoint()"
Original file line number Diff line number Diff line change 6060)
6161
6262
63+ # Dummy breakpoint for doctests
64+ def dummy_breakpoint ():
65+ print ("Dummy breakpoint() reached! Returning." )
66+
67+
6368class TestOutput (Output ):
6469 """Output class for tests"""
6570
You can’t perform that action at this time.
0 commit comments