File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ def test_auto_detect_cpus(
5454) -> None :
5555 from xdist .plugin import pytest_cmdline_main as check_options
5656
57+ monkeypatch .delenv ("PYTEST_XDIST_AUTO_NUM_WORKERS" , False )
58+
5759 with suppress (ImportError ):
5860 import psutil
5961
@@ -101,6 +103,7 @@ def test_auto_detect_cpus_psutil(
101103
102104 psutil = pytest .importorskip ("psutil" )
103105
106+ monkeypatch .delenv ("PYTEST_XDIST_AUTO_NUM_WORKERS" , False )
104107 monkeypatch .setattr (psutil , "cpu_count" , lambda logical = True : 84 if logical else 42 )
105108
106109 config = pytester .parseconfigure ("-nauto" )
@@ -117,6 +120,8 @@ def test_auto_detect_cpus_os(
117120) -> None :
118121 from xdist .plugin import pytest_cmdline_main as check_options
119122
123+ monkeypatch .delenv ("PYTEST_XDIST_AUTO_NUM_WORKERS" , False )
124+
120125 config = pytester .parseconfigure ("-nauto" )
121126 check_options (config )
122127 assert config .getoption ("numprocesses" ) == 3
@@ -178,6 +183,8 @@ def test_hook_auto_num_workers_none(
178183 # but we document it so let's test it.
179184 from xdist .plugin import pytest_cmdline_main as check_options
180185
186+ monkeypatch .delenv ("PYTEST_XDIST_AUTO_NUM_WORKERS" , False )
187+
181188 pytester .makeconftest (
182189 """
183190 def pytest_xdist_auto_num_workers():
You can’t perform that action at this time.
0 commit comments