Merge pull request #1663 from aostr/master

Rename the default plugin "pdb" into "debugging"
This commit is contained in:
Bruno Oliveira 2016-06-25 09:56:54 -03:00 committed by GitHub
commit c519b9517a
4 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,8 @@
Thanks `@bagerard`_ for reporting (`#1503`_). Thanks to `@davehunt`_ and
`@tomviner`_ for PR.
* Renamed the pytest ``pdb`` module (plugin) into ``debugging``.
*
* ImportErrors in plugins now are a fatal error instead of issuing a

View File

@ -63,7 +63,7 @@ class UsageError(Exception):
_preinit = []
default_plugins = (
"mark main terminal runner python pdb unittest capture skipping "
"mark main terminal runner python debugging unittest capture skipping "
"tmpdir monkeypatch recwarn pastebin helpconfig nose assertion genscript "
"junitxml resultlog doctest cacheprovider").split()

View File

@ -17,7 +17,7 @@ class TestPDB:
pdblist = []
def mypdb(*args):
pdblist.append(args)
plugin = request.config.pluginmanager.getplugin('pdb')
plugin = request.config.pluginmanager.getplugin('debugging')
monkeypatch.setattr(plugin, 'post_mortem', mypdb)
return pdblist