Skip to content

Commit d6ffb29

Browse files
committed
Force suffixes in all scenarios. Ref #387.
1 parent e41b414 commit d6ffb29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pytest_cov/engine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,11 @@ def start(self):
176176

177177
self.cov = coverage.Coverage(source=self.cov_source,
178178
branch=self.cov_branch,
179+
data_suffix=True,
179180
config_file=self.cov_config)
180181
self.combining_cov = coverage.Coverage(source=self.cov_source,
181182
branch=self.cov_branch,
183+
data_suffix=True,
182184
data_file=os.path.abspath(self.cov.config.data_file),
183185
config_file=self.cov_config)
184186

@@ -225,6 +227,7 @@ def start(self):
225227
self.cov._warn_preimported_source = False
226228
self.combining_cov = coverage.Coverage(source=self.cov_source,
227229
branch=self.cov_branch,
230+
data_suffix=True,
228231
data_file=os.path.abspath(self.cov.config.data_file),
229232
config_file=self.cov_config)
230233
if self.cov_append:

0 commit comments

Comments
 (0)