--pdb treats KeyboardInterrupt as exception

This commit is contained in:
Brian Maissy
2018-05-02 00:58:35 +03:00
parent 5ba0663827
commit c258fe1459
5 changed files with 23 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ def pytest_addoption(parser):
group = parser.getgroup("general")
group._addoption(
'--pdb', dest="usepdb", action="store_true",
help="start the interactive Python debugger on errors.")
help="start the interactive Python debugger on errors or KeyboardInterrupt.")
group._addoption(
'--pdbcls', dest="usepdb_cls", metavar="modulename:classname",
help="start a custom interactive Python debugger on errors. "