File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ The ``--boxed `` commmand line argument is deprecated.
2
+ Install pytest-forked and use ``--forked `` instead.
3
+ pytest-xdist 3.0.0 will remove the ``--boxed `` argument and pytest-forked dependency.
Original file line number Diff line number Diff line change 1
- .. note ::
1
+ .. warning ::
2
2
3
3
Since 1.19.0, the actual implementation of the ``--boxed`` option has been moved to a
4
4
separate plugin, `pytest-forked <https://github.com/pytest-dev/pytest-forked>`_
5
- which can be installed independently. The ``--boxed`` command-line options remains
6
- for backward compatibility reasons .
5
+ which can be installed independently. The ``--boxed`` command-line option is deprecated
6
+ and will be removed in pytest-xdist 3.0.0; use ``--forked`` from pytest-forked instead .
7
7
8
8
9
9
If your testing involves C or C++ libraries you might have to deal
Original file line number Diff line number Diff line change @@ -193,6 +193,12 @@ def pytest_configure(config):
193
193
if tr :
194
194
tr .showfspath = False
195
195
if config .getoption ("boxed" ):
196
+ warning = DeprecationWarning (
197
+ "The --boxed commmand line argument is deprecated. "
198
+ "Install pytest-forked and use --forked instead. "
199
+ "pytest-xdist 3.0.0 will remove the --boxed argument and pytest-forked dependency."
200
+ )
201
+ config .issue_config_time_warning (warning , 2 )
196
202
config .option .forked = True
197
203
198
204
Original file line number Diff line number Diff line change @@ -738,7 +738,7 @@ def test_ok():
738
738
result .stdout .fnmatch_lines ("*1 passed*" )
739
739
740
740
741
- @pytest .mark .parametrize ("plugin" , ["xdist.looponfail" , "xdist.boxed" ])
741
+ @pytest .mark .parametrize ("plugin" , ["xdist.looponfail" ])
742
742
def test_sub_plugins_disabled (pytester , plugin ) -> None :
743
743
"""Test that xdist doesn't break if we disable any of its sub-plugins. (#32)"""
744
744
p1 = pytester .makepyfile (
You can’t perform that action at this time.
0 commit comments