Skip to content

Commit 4865bec

Browse files
committed
Remove use of rsyncdir
Fixes: #557
1 parent 591f03d commit 4865bec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pytest_cov/engine.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ def start(self):
260260

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

265267
self.cov = coverage.Coverage(source=self.cov_source,
266268
branch=self.cov_branch,

0 commit comments

Comments
 (0)