[py-dev] New plugin: pytest-timeout
Floris Bruynooghe
flub at devork.be
Fri Mar 9 00:17:19 CET 2012
On 7 March 2012 23:35, Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de> wrote:
> in addition something for eventlet/gevent based timeout objects
> as well as a ini option to choose the timeout method between signal/thread,
> gevent, eventlet could be nice
eventlet/gevent timeouts are also a good idea, I'll look into adding
these as well.
One issue with this however is that I hate calling import from inside
a function (partially because I've looked too close at eventlet's
patching code) but unconditionally importing it upfront, in a
try-except block, woud be bad for py.test's startup time. Would
importing in a function be reasonable in this case? Or am I missing
another solution?
Thanks for all the feedback everyone!
Floris
--
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org
More information about the Pytest-dev
mailing list