From: Georg Brandl Date: Fri, 30 Jul 2010 18:15:16 +0000 (+0000) Subject: Test that "source" with nonexisting things works as expected. X-Git-Tag: v3.2a1~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdf66a9a7c6fe761353058d6d8eb3695ac567722;p=thirdparty%2FPython%2Fcpython.git Test that "source" with nonexisting things works as expected. --- diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index b2a441db7488..0861e1edb332 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 """