Skip to content

Commit 1a8394e

Browse files
authored
Merge pull request pytest-dev#12531 from webknjaz/maintenance/xfail-no-cover
2 parents dbf7dee + f2acc65 commit 1a8394e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.coveragerc

+2
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ exclude_lines =
2929

3030
^\s*if TYPE_CHECKING:
3131
^\s*@overload( |$)
32+
33+
^\s*@pytest\.mark\.xfail

changelog/12531.contrib.rst

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The coverage reporting configuration has been updated to exclude
2+
pytest's own tests marked as expected to fail from the coverage
3+
report. This has an effect of reducing the influence of flaky
4+
tests on the resulting number.
5+
6+
-- by :user`webknjaz`

0 commit comments

Comments
 (0)