Skip to content

Commit

Permalink
Use ExceptionInfo.exconly() instead of getrepr()
Browse files Browse the repository at this point in the history
Due to regression in Pytest 6.0
  • Loading branch information
christiansandberg committed Aug 11, 2020
1 parent 431feac commit 9f77e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_reporter_html1/templates/html1/module.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h3 class="test-name">
</table>
{% for phase in test.phases if phase.call.excinfo %}
<div class="repr">
<pre>{{ phase.call.excinfo.getrepr(style='no', chain=False) }}</pre>
<pre>{{ phase.call.excinfo.exconly(tryshort=True) }}</pre>
</div>
{% endfor %}
<div class="test-phases">
Expand Down

0 comments on commit 9f77e8a

Please sign in to comment.