File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
3636Shows a terminal report::
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments