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

This commit is contained in:
Georg Brandl 2010-07-30 18:15:16 +00:00
parent 5ed2b5a92a
commit cdf66a9a7c
1 changed files with 3 additions and 0 deletions

View File

@ -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():
(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
""" """