Skip to content

Commit e5182c9

Browse files
committed
Blind fix for coverage failing in GitHub Actions.
It doesn't fail locally.
1 parent b2f0a76 commit e5182c9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,19 @@ source = [
6060

6161
[tool.coverage.report]
6262
exclude_lines = [
63+
"pragma: no cover",
6364
"except ImportError:",
6465
"if self.debug:",
6566
"if sys.platform != \"win32\":",
6667
"if typing.TYPE_CHECKING:",
67-
"pragma: no cover",
6868
"raise AssertionError",
6969
"self.fail\\(\".*\"\\)",
7070
"@unittest.skip",
7171
]
72+
partial_branches = [
73+
"pragma: no branch",
74+
"with self.assertRaises\\(.*\\)",
75+
]
7276

7377
[tool.ruff]
7478
target-version = "py312"

0 commit comments

Comments
 (0)