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:
@@ -282,9 +282,9 @@ class TestPerTestCapturing:
|
||||
"====* FAILURES *====",
|
||||
"____*____",
|
||||
"*test_capturing_outerr.py:8: ValueError",
|
||||
"*--- Captured stdout ---*",
|
||||
"*--- Captured stdout *call*",
|
||||
"1",
|
||||
"*--- Captured stderr ---*",
|
||||
"*--- Captured stderr *call*",
|
||||
"2",
|
||||
])
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user