pytest-xdist icon indicating copy to clipboard operation
pytest-xdist copied to clipboard

Rsync deprecation warning

Open rzuckerm opened this issue 1 year ago • 2 comments

I am not using the --rsyncdir command-line option, yet I'm seeing this deprecation warning:

.../site-packages/xdist/plugin.py:259: DeprecationWarning: The --rsyncdir command line argument and rsyncdirs config variable are deprecated.
  The rsync feature will be removed in pytest-xdist 4.0.
    config.issue_config_time_warning(warning, 2)

The only option I'm using is -n auto, so I don't understand why I'm seeing this warning. What do I need to do to stop this warning?

By the way, I am aware of #1081 , but that issue did not seem a good place to comment since my use-case is just running tests across multiple CPUs as opposed to running them on separate remote hosts.

rzuckerm avatar May 20 '24 13:05 rzuckerm

For info, I had this error too. Updating pytest-cov from 4.1.0 to 5.0.0 made it go away in my case.

caarmen avatar Jun 03 '24 09:06 caarmen

What might be happening is a plugin configuring that option... I recall this happening with pytest-coverage or something like that (don't have the time to search for it now sorry).

nicoddemus avatar Jun 04 '24 11:06 nicoddemus