[Tutor] About Using timeout Mark in Pytest
Rohit Mediratta
rohitm at gmail.com
Sun Aug 21 03:19:25 EDT 2016
I'm guessing the decorator is using method='thread', which is the default and aborts the process when timeout occurs.
Can you see if your env supports method='signal' and if this resolves the issue?
@pytest.mark.timeout(method='signal')
Reference guide for supported options is here:
https://pypi.python.org/pypi/pytest-timeout
-Rohit
> On Aug 20, 2016, at 3:37 PM, Michelle Meiduo Wu <wumeid at hotmail.com> wrote:
>
> Hi there,
>
>
> I'd like to use @pytest. mark.timeout in pytest test in Windows. But if one of test cases is timeout, then the following test cases will stop.
>
>
> Is there anybody know how to continue to run the following test cases if a test case is timeout?
>
>
> Thank you in advance.
>
>
> Michelle
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list