committed by
Bruno Oliveira
parent
c168706fbe
commit
ed65e888cf
@@ -24,12 +24,16 @@ def pytest_xdist_newgateway(gateway):
|
||||
"""called on new raw gateway creation."""
|
||||
|
||||
|
||||
@pytest.hookspec()
|
||||
@pytest.hookspec(
|
||||
warn_on_impl="rsync feature is deprecated and will be removed in pytest-xdist 4.0"
|
||||
)
|
||||
def pytest_xdist_rsyncstart(source, gateways):
|
||||
"""called before rsyncing a directory to remote gateways takes place."""
|
||||
|
||||
|
||||
@pytest.hookspec()
|
||||
@pytest.hookspec(
|
||||
warn_on_impl="rsync feature is deprecated and will be removed in pytest-xdist 4.0"
|
||||
)
|
||||
def pytest_xdist_rsyncfinish(source, gateways):
|
||||
"""called after rsyncing a directory to remote gateways takes place."""
|
||||
|
||||
|
||||
@@ -204,6 +204,13 @@ def pytest_configure(config):
|
||||
)
|
||||
config.issue_config_time_warning(warning, 2)
|
||||
|
||||
if config.getoption("rsyncdir", None) or config.getini("rsyncdirs"):
|
||||
warning = DeprecationWarning(
|
||||
"The --rsyncdir command line argument and rsyncdirs config variable are deprecated.\n"
|
||||
"The rsync feature will be removed in pytest-xdist 4.0."
|
||||
)
|
||||
config.issue_config_time_warning(warning, 2)
|
||||
|
||||
config_line = (
|
||||
"xdist_group: specify group for tests should run in same session."
|
||||
"in relation to one another. " + "Provided by pytest-xdist."
|
||||
|
||||
Reference in New Issue
Block a user