diff options
author | Georg Brandl <georg@python.org> | 2010-07-30 18:15:16 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-30 18:15:16 (GMT) |
commit | cdf66a9a7c6fe761353058d6d8eb3695ac567722 (patch) | |
tree | 39fd9efea387335230eb39e8cf7a0450cf0638c3 /Lib/test/test_pdb.py | |
parent | 5ed2b5a92ab4f5c4c8ad77ec95a4f7add3083432 (diff) | |
download | cpython-cdf66a9a7c6fe761353058d6d8eb3695ac567722.zip cpython-cdf66a9a7c6fe761353058d6d8eb3695ac567722.tar.gz cpython-cdf66a9a7c6fe761353058d6d8eb3695ac567722.tar.bz2 |
Test that "source" with nonexisting things works as expected.
Diffstat (limited to 'Lib/test/test_pdb.py')
-rw-r--r-- | Lib/test/test_pdb.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index b2a441d..0861e1e 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -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 """ |