On 19 March 2012 22:20, Floris Bruynooghe <f...@devork.be> wrote: > On 19 March 2012 16:38, Brack, Laurent P. <lpb...@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 this. Regards, Floris -- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev