[py-dev] pytest-timeout 0.3: py.test plugin to abort long-running tests

Floris Bruynooghe flub at devork.be
Wed Sep 19 02:00:15 CEST 2012

Hello all,

I am pleased to announce the release of pytest-timeout 0.3.


pytest-timeout is a plugin for py.test which allows you to abort tests
after a specific timeout.  This is useful to e.g. handle hanging tests
on a continuous integration server.  When tests are aborted you will
get stack dumps of all threads in the python process to help you debug
why the test hung.

All feedback is welcome.  Please use the bug tracker on bitbucket to
report any issues:

Changelog since 0.2:

* Added the PYTEST_TIMEOUT environment variable as a way of specifying
  the timeout (closes issue #2).

* More flexible marker argument parsing: you can now specify the
  method using a positional argument.

* The plugin is now enabled by default.  There is no longer a need to
  specify ``timeout=0`` in the configuration file or on the command
  line simply so that a marker would work.


More information about the Pytest-dev mailing list