1
1
import py
2
2
import execnet
3
- from xdist .plugin import _check_options as check_options
4
3
from xdist .workermanage import NodeManager
5
4
6
5
@@ -23,19 +22,15 @@ def test_pdb_can_be_used_before_configure(testdir):
23
22
24
23
def test_dist_options (testdir ):
25
24
config = testdir .parseconfigure ("-n 2" )
26
- check_options (config )
27
25
assert config .option .dist == "load"
28
26
assert config .option .tx == ["popen" ] * 2
29
27
config = testdir .parseconfigure ("--numprocesses" , "2" )
30
- check_options (config )
31
28
assert config .option .dist == "load"
32
29
assert config .option .tx == ["popen" ] * 2
33
30
config = testdir .parseconfigure ("--numprocesses" , "3" , "--maxprocesses" , "2" )
34
- check_options (config )
35
31
assert config .option .dist == "load"
36
32
assert config .option .tx == ["popen" ] * 2
37
33
config = testdir .parseconfigure ("-d" )
38
- check_options (config )
39
34
assert config .option .dist == "load"
40
35
41
36
@@ -58,7 +53,6 @@ def test_auto_detect_cpus(testdir, monkeypatch):
58
53
assert config .getoption ("numprocesses" ) == 99
59
54
60
55
config = testdir .parseconfigure ("-nauto" , "--pdb" )
61
- check_options (config )
62
56
assert config .getoption ("usepdb" )
63
57
assert config .getoption ("numprocesses" ) == 0
64
58
@@ -70,15 +64,12 @@ def test_auto_detect_cpus(testdir, monkeypatch):
70
64
71
65
def test_boxed_with_collect_only (testdir ):
72
66
config = testdir .parseconfigure ("-n1" , "--boxed" )
73
- check_options (config )
74
67
assert config .option .forked
75
68
76
69
config = testdir .parseconfigure ("-n1" , "--collect-only" )
77
- check_options (config )
78
70
assert not config .option .forked
79
71
80
72
config = testdir .parseconfigure ("-n1" , "--boxed" , "--collect-only" )
81
- check_options (config )
82
73
assert config .option .forked
83
74
84
75
0 commit comments