mirror of https://github.com/python/cpython
Test that "source" with nonexisting things works as expected.
This commit is contained in:
parent
5ed2b5a92a
commit
cdf66a9a7c
|
@ -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
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue