Deprecate --boxed

This will allow removing the pytest-forked dependency in the future.

Refs #468.
This commit is contained in:
Ran Benita
2021-11-02 09:00:24 +02:00
parent 18cd9b900c
commit 89a3df3e20
4 changed files with 13 additions and 4 deletions

View File

@@ -193,6 +193,12 @@ def pytest_configure(config):
if tr:
tr.showfspath = False
if config.getoption("boxed"):
warning = DeprecationWarning(
"The --boxed commmand line argument is deprecated. "
"Install pytest-forked and use --forked instead. "
"pytest-xdist 3.0.0 will remove the --boxed argument and pytest-forked dependency."
)
config.issue_config_time_warning(warning, 2)
config.option.forked = True