This commit is contained in:
hg 2013-05-05 22:15:06 +02:00
parent 56aa9962fc
commit d2dc797779
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ def pytest_runtest_makereport(item, call):
if call.when == "call":
longrepr = item.repr_failure(excinfo)
else: # exception in setup or teardown
longrepr = item._repr_failure_py(excinfo)
longrepr = item._repr_failure_py(excinfo,style=item.config.option.tbstyle)
return TestReport(item.nodeid, item.location,
keywords, outcome, longrepr, when,
duration=duration)