Several enhancements to pdb and its test suite.

* added basic test for basic commands
* removed duplication of command docs, and moved them to their implementation
* unified and useful display of exceptions
* output messages and errors using overridable methods (also fixes #1503502)
This commit is contained in:
Georg Brandl 2010-07-30 16:00:46 +00:00
parent 9d624d26d1
commit 0d08962659
3 changed files with 560 additions and 642 deletions

View file

@ -1898,7 +1898,7 @@ def test_pdb_set_trace_nested():
> <doctest foo[1]>(1)<module>()
-> calls_set_trace()
(Pdb) print(foo)
*** NameError: NameError("name 'foo' is not defined",)
*** NameError: name 'foo' is not defined
(Pdb) continue
TestResults(failed=0, attempted=2)
"""