On 03/09/2012 12:17 AM, Floris Bruynooghe wrote: > On 7 March 2012 23:35, Ronny Pfannschmidt<ronny.pfannschm...@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? >
Lets go with the assumption that whoever is requesting a gevent/eventlet timeout knows enough of what hes doing (since it would need a config entry) then its reasonable enough to just grab the timeouts in the function wrt monkeypatching, i think its strictly opt-in, and should also be left to the user best, Ronny > > Thanks for all the feedback everyone! > > Floris > > _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev