[pytest-dev] Disabling timeout for pdb
Wolfgang Schnerring
ws at gocept.com
Thu Sep 18 15:05:14 CEST 2014
Hello!
* holger krekel [2014-09-15 07:13]:
> > > What we probabl need is a new hook, "pytest_enter_pdb" maybe, which
> > > pytest-timeout can implement to switch off timeout handling.
> > > pytest would call this hook in the "pdb.set_trace()" interception
> > > code around _pytest/pdb.py:34.
> > If that's alright with you I could give this a try. That'll necessitate
> > changes in both pytest and pytest_timeout, but I do think it's the cleaner
> > solution.
> Sure, don't hesitate to ask back any questions. FYI _pytest/hookspec.py
> defines hooks and pluginmanager.hook.pytest_*() is how to call them when
> you have a pluginmanager reference (config.hook and item.ihook also
> allow to call hooks as a shortcut).
Thanks for the pointer, this made my work rather easier!
So, here's my shot at this:
https://bitbucket.org/hpk42/pytest/pull-request/204/diff
https://bitbucket.org/flub/pytest-timeout/pull-request/3/diff
Feedback is welcome. :)
Wolfgang
More information about the Pytest-dev
mailing list