From d2dc797779262d9ebb28ae1301c31e72c78a1fef Mon Sep 17 00:00:00 2001 From: hg Date: Sun, 5 May 2013 22:15:06 +0200 Subject: [PATCH] #299 --- _pytest/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/runner.py b/_pytest/runner.py index 27f9c5f90..3c491cd29 100644 --- a/_pytest/runner.py +++ b/_pytest/runner.py @@ -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)