mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Test that "source" with nonexisting things works as expected.
This commit is contained in:
parent
5ed2b5a92a
commit
cdf66a9a7c
1 changed files with 3 additions and 0 deletions
|
|
@ -298,6 +298,7 @@ def test_list_commands():
|
|||
... 'step', # step into do_nothing
|
||||
... 'longlist', # list all lines
|
||||
... 'source do_something', # list all lines of function
|
||||
... 'source fooxxx', # something that doesn't exit
|
||||
... 'continue',
|
||||
... ]):
|
||||
... test_function()
|
||||
|
|
@ -352,6 +353,8 @@ def test_list_commands():
|
|||
(Pdb) source do_something
|
||||
... def do_something():
|
||||
... print(42)
|
||||
(Pdb) source fooxxx
|
||||
*** ...
|
||||
(Pdb) continue
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue