Add tests for custom pdb class.

(and edit CHANGELOG)
This commit is contained in:
Antony Lee
2016-07-11 17:43:06 -07:00
parent 6383b53ad9
commit 7ee3dd1cb5
3 changed files with 31 additions and 4 deletions

View File

@@ -13,7 +13,8 @@ def pytest_addoption(parser):
help="start the interactive Python debugger on errors.")
group._addoption(
'--pdbcls', dest="usepdb_cls", metavar="modulename:classname",
help="start a custom interactive Python debugger on errors.")
help="start a custom interactive Python debugger on errors. "
"For example: --pdbcls=IPython.core.debugger:Pdb")
def pytest_namespace():
return {'set_trace': pytestPDB().set_trace}