File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -94,17 +94,12 @@ def test_auto_detect_cpus(
9494 check_options (config )
9595 assert config .getoption ("numprocesses" ) == 99
9696
97- config = pytester .parseconfigure ("-nauto" , "--pdb" )
98- check_options (config )
99- assert config .getoption ("usepdb" )
100- assert config .getoption ("numprocesses" ) == 0
101- assert config .getoption ("dist" ) == "no"
102-
103- config = pytester .parseconfigure ("-nlogical" , "--pdb" )
104- check_options (config )
105- assert config .getoption ("usepdb" )
106- assert config .getoption ("numprocesses" ) == 0
107- assert config .getoption ("dist" ) == "no"
97+ for numprocesses in (0 , "auto" , "logical" ):
98+ config = pytester .parseconfigure (f"-n{ numprocesses } " , "--pdb" )
99+ check_options (config )
100+ assert config .getoption ("usepdb" )
101+ assert config .getoption ("numprocesses" ) == 0
102+ assert config .getoption ("dist" ) == "no"
108103
109104 monkeypatch .delattr (os , "sched_getaffinity" , raising = False )
110105 monkeypatch .setenv ("TRAVIS" , "true" )
You can’t perform that action at this time.
0 commit comments