Skip to content

Commit 26ee9fd

Browse files
committed
tests: disable summary of xpassed/xfailed tests
With pytest-dev/pytest#11233, enabling summaries for xfailed tests also enables their full error tracebacks, which complicates finding the actual test failures. There is no way of disabling just the tracebacks, so disable the summaries of xpassed/xfailed tests altogether.
1 parent 133f6a9 commit 26ee9fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ extend-ignore = E265
4949
max-line-length=120
5050

5151
[tool:pytest]
52-
# Display summary info for (s)skipped, (x)xfailed, (X)xpassed, (f)failed and (E)errored tests
52+
# Display summary info for (s)skipped, (f)failed and (E)errored tests.
53+
# Do not enable summary for (x)xfailed and (X)xpassed tests, because as
54+
# of pytest-dev/pytest#11233, this includes full tracebacks.
5355
# Skip doctest text files
54-
addopts=--maxfail=3 -m "not slow" -v -rsxXfE --doctest-glob=
56+
addopts=--maxfail=3 -m "not slow" -v -rsfE --doctest-glob=
5557

5658
markers =
5759
darwin: only run on macOS

0 commit comments

Comments
 (0)