[py-dev] pytest-timeout 0.2

Floris Bruynooghe flub at devork.be
Thu Jun 21 00:31:42 CEST 2012

On 19 March 2012 22:20, Floris Bruynooghe <flub at devork.be> wrote:
> On 19 March 2012 16:38, Brack, Laurent P. <lpbrac at dolby.com> wrote:
>> It would also be nice to have a consistent behavior between sigalarm on/off. For instance, on Windows, pytest exits on first hang as opposed to *nix where the test is pre-empted and pytest moves on to the next one.
> I was writing up a response saying I didn't know how to do so, but
> while doing so I thought it might be possible to emulate sigalrm with
> a timer thread which fires an other signal.  I might investigate the
> feasibility of such an approach.

I (finally) had a look at this and don't think it's worth pursuing
mostly because windows doesn't have any user-usable signals to do
this.  And the benefit on UNIX just doesn't seem that big to me.  I
think integration with xdist would be a better approach to tackle


Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org

More information about the Pytest-dev mailing list