[py-dev] New plugin: pytest-timeout
Ronny.Pfannschmidt at gmx.de
Thu Mar 8 00:35:08 CET 2012
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
On 03/07/2012 10:55 PM, holger krekel wrote:
> Hi Floris,
> thanks for the plugin!
> looking at version 0.1 i wonder why you didn't go with always activating
> the plugin so not requiring any pytest_plugins setting. The default
> could be "no timeout" or None which could be modified with:
> timeout = 2.3 # secs
> or with a marker. Not using some implicit magic number is anyway a good
> idea i think.
> On Sun, Feb 26, 2012 at 23:19 +0000, Floris Bruynooghe wrote:
>> Hi all,
>> This is to announce the first release of pytest-timeout, a plugin
>> which will interrupt long running (i.e. blocking) tests. This is
>> particularly useful when running the tests on a CI host. When a test
>> is interrupted the stacks of all threads are dumped to stderr, which
>> helps you to locate the reason for the blocking. If the system
>> supports SIGALRM then the test itself is interrupted using
>> pytest.fail() and other tests continue to run, otherwise the stack(s)
>> are dumped to stderr and the process exists immediately.
>> The plugin is available from the cheeseshop:
>> http://pypi.python.org/pypi/pytest-timeout and the code lives at
>> bitbucket: https://bitbucket.org/flub/pytest-timeout/. Feel free to
>> provide any feedback or report issues.
>> Debian GNU/Linux -- The Power of Freedom
>> www.debian.org | www.gnu.org | www.kernel.org
More information about the Pytest-dev