[py-dev] New plugin: pytest-timeout

Floris Bruynooghe flub at devork.be
Mon Feb 27 00:19:59 CET 2012


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.

Regards,
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