Skip to content

Commit

Permalink
Remove use of rsyncdir
Browse files Browse the repository at this point in the history
Fixes: #557
  • Loading branch information
ssbarnea committed Oct 26, 2022
1 parent 591f03d commit 4865bec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pytest_cov/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ def start(self):

# Ensure coverage rc file rsynced if appropriate.
if self.cov_config and os.path.exists(self.cov_config):
self.config.option.rsyncdir.append(self.cov_config)
# rsyncdir is going away in pytest-xdist 4.0, already deprecated
if hasattr(self.config.option, 'rsyncdir'):
self.config.option.rsyncdir.append(self.cov_config)

self.cov = coverage.Coverage(source=self.cov_source,
branch=self.cov_branch,
Expand Down

0 comments on commit 4865bec

Please sign in to comment.