remove externally setting and dealing with "item.outerr" from capturing in favor of a direct interface for adding reporting sections to items.

* * *
refactor makereport implementation to avoid recursion with __multicall__
This commit is contained in:
holger krekel
2014-03-14 12:49:34 +01:00
parent cde970be69
commit b47fdbe0a7
7 changed files with 43 additions and 34 deletions

View File

@@ -478,10 +478,12 @@ def test_unicode_issue368(testdir):
path = testdir.tmpdir.join("test.xml")
log = LogXML(str(path), None)
ustr = py.builtin._totext("ВНИ!", "utf-8")
class report:
from _pytest.runner import BaseReport
class Report(BaseReport):
longrepr = ustr
sections = []
nodeid = "something"
report = Report()
# hopefully this is not too brittle ...
log.pytest_sessionstart()