]> granicus.if.org Git - python/commitdiff
Test that "source" with nonexisting things works as expected.
authorGeorg Brandl <georg@python.org>
Fri, 30 Jul 2010 18:15:16 +0000 (18:15 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 30 Jul 2010 18:15:16 +0000 (18:15 +0000)
Lib/test/test_pdb.py

index b2a441db7488f73f813bd0b04aa5826d604d4eb0..0861e1edb332804519a251850eb5b27f44c07822 100644 (file)
@@ -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
     """