Skip to content

Commit f473b87

Browse files
committed
test: it could be useful to disable branch coverage in this helper
1 parent f85d9b7 commit f473b87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tests/coveragetest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def check_coverage(
153153
partials: Iterable[str] = (),
154154
branchz: str | None = None,
155155
branchz_missing: str | None = None,
156+
branch: bool = True,
156157
) -> Coverage:
157158
"""Check the coverage measurement of `text`.
158159
@@ -184,7 +185,7 @@ def check_coverage(
184185
branches_missing = arcz_to_arcs(branchz_missing)
185186

186187
# Start up coverage.py.
187-
cov = coverage.Coverage(branch=True)
188+
cov = coverage.Coverage(branch=branch)
188189
cov.erase()
189190
for exc in excludes or []:
190191
cov.exclude(exc)

0 commit comments

Comments
 (0)