Open
Description
My use case (potentially there are others): Have a lot of xfail tests. Substantial amount of time is spent in repr_failure
for those tests even if their traceback is never printed.
Minimal example:
# test_minimal.py
import pytest
@pytest.mark.xfail(reason="blah")
@pytest.mark.parametrize("_", range(1000))
def test_foo(_):
assert 0
time pytest test_minimal.py
# 1.5 secs
# This has the exact same output but is faster
time pytest --tb=no test_minimal.py
# 1.3 secs