From cdf66a9a7c6fe761353058d6d8eb3695ac567722 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 30 Jul 2010 18:15:16 +0000 Subject: Test that "source" with nonexisting things works as expected. --- Lib/test/test_pdb.py | 3 +++ 1 file changed, 3 insertions(+) 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 """ -- cgit v0.12