[Python-checkins] r83292 - python/branches/py3k/Lib/test/test_pdb.py

georg.brandl python-checkins at python.org
Fri Jul 30 20:15:16 CEST 2010


Author: georg.brandl
Date: Fri Jul 30 20:15:16 2010
New Revision: 83292

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

Modified:
   python/branches/py3k/Lib/test/test_pdb.py

Modified: python/branches/py3k/Lib/test/test_pdb.py
==============================================================================
--- python/branches/py3k/Lib/test/test_pdb.py	(original)
+++ python/branches/py3k/Lib/test/test_pdb.py	Fri Jul 30 20:15:16 2010
@@ -298,6 +298,7 @@
     ...     '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 @@
     (Pdb) source do_something
     ...         def do_something():
     ...             print(42)
+    (Pdb) source fooxxx
+    *** ...
     (Pdb) continue
     """
 


More information about the Python-checkins mailing list