Skip to content

Commit 9b23d47

Browse files
committed
🧪 Exclude xfailing tests from coverage
1 parent e70d040 commit 9b23d47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ exclude_lines = [
303303
'class .*\bProtocol\b.*\):',
304304
"raise NotImplementedError",
305305
]
306+
exclude_also = [
307+
'^\s*@pytest\.mark\.xfail',
308+
]
306309
partial_branches = [
307310
"pragma: no branch",
308311
"if not TYPE_CHECKING:",

0 commit comments

Comments
 (0)