File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def pytest_addoption(parser):
30
30
def pytest_cmdline_main (config ):
31
31
32
32
if config .getoption ("looponfail" ):
33
- usepdb = config .getoption ("usepdb" ) # a core option
33
+ usepdb = config .getoption ("usepdb" , False ) # a core option
34
34
if usepdb :
35
35
raise pytest .UsageError ("--pdb is incompatible with --looponfail." )
36
36
looponfail_main (config )
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def pytest_configure(config):
181
181
182
182
@pytest .mark .tryfirst
183
183
def pytest_cmdline_main (config ):
184
- usepdb = config .getoption ("usepdb" ) # a core option
184
+ usepdb = config .getoption ("usepdb" , False ) # a core option
185
185
if isinstance (config .option .numprocesses , AutoInt ):
186
186
config .option .numprocesses = 0 if usepdb else int (config .option .numprocesses )
187
187
You can’t perform that action at this time.
0 commit comments