[py-svn] r56985 - py/branch/event/py/code
hpk at codespeak.net
hpk at codespeak.net
Mon Aug 4 23:13:17 CEST 2008
Author: hpk
Date: Mon Aug 4 23:13:16 2008
New Revision: 56985
Modified:
py/branch/event/py/code/excinfo.py
Log:
explicit keyword args
Modified: py/branch/event/py/code/excinfo.py
==============================================================================
--- py/branch/event/py/code/excinfo.py (original)
+++ py/branch/event/py/code/excinfo.py Mon Aug 4 23:13:16 2008
@@ -52,8 +52,12 @@
formatter.repr_tb(self)
return formatter
- def format(self, **kwargs):
- repr = self._formatrepr(**kwargs)
+ def format(self, showlocals=False, style="long"):
+ """ format exception info into string.
+ showlocals: show locals per traceback entry
+ style: long|short|no traceback style
+ """
+ repr = self._formatrepr(showlocals=showlocals, style=style)
tw = py.io.TerminalWriter()
repr.writeterminal(tw)
return tw.stringio.getvalue()
More information about the pytest-commit
mailing list