diff --git a/pytest_reporter_html1/templates/html1/test.html b/pytest_reporter_html1/templates/html1/test.html index b3700de..4ea00ae 100644 --- a/pytest_reporter_html1/templates/html1/test.html +++ b/pytest_reporter_html1/templates/html1/test.html @@ -87,7 +87,7 @@ {% endfor %} {% endblock %} -{% for phase in test.phases if phase.report.longrepr and 'call' in phase %} +{% for phase in test.phases if phase.call and phase.call.excinfo %}
{{ phase.call.excinfo.exconly(tryshort=True) }}