Commit cdf66a9a authored by Georg Brandl's avatar Georg Brandl

Test that "source" with nonexisting things works as expected.

parent 5ed2b5a9
...@@ -298,6 +298,7 @@ def test_list_commands(): ...@@ -298,6 +298,7 @@ def test_list_commands():
... 'step', # step into do_nothing ... 'step', # step into do_nothing
... 'longlist', # list all lines ... 'longlist', # list all lines
... 'source do_something', # list all lines of function ... 'source do_something', # list all lines of function
... 'source fooxxx', # something that doesn't exit
... 'continue', ... 'continue',
... ]): ... ]):
... test_function() ... test_function()
...@@ -352,6 +353,8 @@ def test_list_commands(): ...@@ -352,6 +353,8 @@ def test_list_commands():
(Pdb) source do_something (Pdb) source do_something
... def do_something(): ... def do_something():
... print(42) ... print(42)
(Pdb) source fooxxx
*** ...
(Pdb) continue (Pdb) continue
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment