Skip to content

Commit

Permalink
Force suffixes in all scenarios. Ref #387.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed May 10, 2020
1 parent e41b414 commit d6ffb29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pytest_cov/engine.py
Expand Up @@ -176,9 +176,11 @@ def start(self):

self.cov = coverage.Coverage(source=self.cov_source,
branch=self.cov_branch,
data_suffix=True,
config_file=self.cov_config)
self.combining_cov = coverage.Coverage(source=self.cov_source,
branch=self.cov_branch,
data_suffix=True,
data_file=os.path.abspath(self.cov.config.data_file),
config_file=self.cov_config)

Expand Down Expand Up @@ -225,6 +227,7 @@ def start(self):
self.cov._warn_preimported_source = False
self.combining_cov = coverage.Coverage(source=self.cov_source,
branch=self.cov_branch,
data_suffix=True,
data_file=os.path.abspath(self.cov.config.data_file),
config_file=self.cov_config)
if self.cov_append:
Expand Down

0 comments on commit d6ffb29

Please sign in to comment.