Skip to content

Commit 119d746

Browse files
committed
Always enable data_suffix for --cov-append
Setting `data_suffix=True` will also enable `parallel=True` and ensure the coverage processes do not conflict with each other. Because pytest-cov always combines the coverage result this is safe to enable.
1 parent 87a1173 commit 119d746

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pytest_cov/engine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def start(self):
218218

219219
self.cov = coverage.Coverage(source=self.cov_source,
220220
branch=self.cov_branch,
221+
data_suffix=True,
221222
config_file=self.cov_config)
222223
self.combining_cov = coverage.Coverage(source=self.cov_source,
223224
branch=self.cov_branch,

0 commit comments

Comments
 (0)