Commits

Georg Brandl committed b803cc2

Test that "source" with nonexisting things works as expected.

Comments (0)

Files changed (1)

Lib/test/test_pdb.py

     ...     '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()
     (Pdb) source do_something
     ...         def do_something():
     ...             print(42)
+    (Pdb) source fooxxx
+    *** ...
     (Pdb) continue
     """