[svn r57790] Reintroduce the --tb option. Add test.

--HG--
branch : trunk
This commit is contained in:
arigo
2008-09-03 10:15:44 +02:00
parent d83db97806
commit b52c58159f
4 changed files with 38 additions and 5 deletions

View File

@@ -268,7 +268,8 @@ class Node(object):
def _repr_failure_py(self, excinfo, outerr):
excinfo.traceback = self._prunetraceback(excinfo.traceback)
repr = excinfo.getrepr(funcargs=True,
showlocals=self._config.option.showlocals)
showlocals=self._config.option.showlocals,
style=self._config.option.tbstyle)
for secname, content in zip(["out", "err"], outerr):
if content:
repr.addsection("Captured std%s" % secname, content.rstrip())