We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f85d9b7 commit f473b87Copy full SHA for f473b87
tests/coveragetest.py
@@ -153,6 +153,7 @@ def check_coverage(
153
partials: Iterable[str] = (),
154
branchz: str | None = None,
155
branchz_missing: str | None = None,
156
+ branch: bool = True,
157
) -> Coverage:
158
"""Check the coverage measurement of `text`.
159
@@ -184,7 +185,7 @@ def check_coverage(
184
185
branches_missing = arcz_to_arcs(branchz_missing)
186
187
# Start up coverage.py.
- cov = coverage.Coverage(branch=True)
188
+ cov = coverage.Coverage(branch=branch)
189
cov.erase()
190
for exc in excludes or []:
191
cov.exclude(exc)
0 commit comments