Skip to content

Commit 0242835

Browse files
committed
Remove use of rsyncdir
Fixes: #557
1 parent 297965e commit 0242835

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/xdist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Again but spread over different hosts and different directories::
3030
pytest --cov=myproj --dist load
3131
--tx ssh=memedough@host1//chdir=testenv1
3232
--tx ssh=memedough@host2//chdir=/tmp/testenv2//python=/tmp/env1/bin/python
33-
--rsyncdir myproj --rsyncdir tests --rsync examples
33+
--rsync examples
3434
tests/
3535

3636
Shows a terminal report::

src/pytest_cov/engine.py

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

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

253255
self.cov = coverage.Coverage(source=self.cov_source,
254256
branch=self.cov_branch,

0 commit comments

Comments
 (0)