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):
3030def pytest_cmdline_main (config ):
3131
3232 if config .getoption ("looponfail" ):
33- usepdb = config .getoption ("usepdb" ) # a core option
33+ usepdb = config .getoption ("usepdb" , False ) # a core option
3434 if usepdb :
3535 raise pytest .UsageError ("--pdb is incompatible with --looponfail." )
3636 looponfail_main (config )
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def pytest_configure(config):
181181
182182@pytest .mark .tryfirst
183183def pytest_cmdline_main (config ):
184- usepdb = config .getoption ("usepdb" ) # a core option
184+ usepdb = config .getoption ("usepdb" , False ) # a core option
185185 if isinstance (config .option .numprocesses , AutoInt ):
186186 config .option .numprocesses = 0 if usepdb else int (config .option .numprocesses )
187187
You can’t perform that action at this time.
0 commit comments