Skip to content

Commit 2ea9442

Browse files
ssbarneaionelmc
authored andcommitted
Remove use of rsyncdir
Fixes: #557
1 parent d9789af commit 2ea9442

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pytest_cov/engine.py

+3-1
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)