[py-svn] r61297 - py/branch/pytestplugin/py/test
hpk at codespeak.net
hpk at codespeak.net
Sat Jan 24 10:30:47 CET 2009
Author: hpk
Date: Sat Jan 24 10:30:45 2009
New Revision: 61297
Modified:
py/branch/pytestplugin/py/test/runner.py
Log:
docstring, report crash as "C" instead of "X"
Modified: py/branch/pytestplugin/py/test/runner.py
==============================================================================
--- py/branch/pytestplugin/py/test/runner.py (original)
+++ py/branch/pytestplugin/py/test/runner.py Sat Jan 24 10:30:45 2009
@@ -14,7 +14,9 @@
import py.__.test.custompdb
class RobustRun(object):
- """ a robust setup/execute/teardown protocol. """
+ """ a robust setup/execute/teardown protocol used both for test collectors
+ and test items.
+ """
def __init__(self, colitem, pdb=None):
self.colitem = colitem
self.getcapture = colitem._config._getcapture
@@ -47,6 +49,7 @@
return self.makereport(res, when, excinfo, outerr)
def getkw(self, when, excinfo, outerr):
+ """construct keyword arguments for a non-passing run of a collector"""
if excinfo.errisinstance(Skipped):
outcome = "skipped"
shortrepr = "s"
@@ -148,5 +151,5 @@
("X", "CRASHED"),
("%s:%s: CRASHED with signal %d" %(path, lineno, result.signal)),
]
- outcomerepr = OutcomeRepr(when="???", shortrepr="X", longrepr=longrepr)
+ outcomerepr = OutcomeRepr(when="???", shortrepr="C", longrepr=longrepr)
return event.ItemTestReport(item, failed=outcomerepr)
More information about the pytest-commit
mailing list