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 authored and ionelmc committed Feb 28, 2023
1 parent d9789af commit 2ea9442
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 2ea9442

Please sign in to comment.