[issue31479] Always reset the signal alarm on unit tests

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch pull_requests: +3579 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue31479] Always reset the signal alarm on unit tests

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue31479] Always reset the signal alarm on unit tests

2017-09-14 Thread STINNER Victor
New submission from STINNER Victor: While fixing bpo-17085 on Python 2.7 (test_socket: cancel scheduled alarm on test failure), I noticed that not all unit tests currently always reset the signal alarm. I propose to always use the pattern "try/finally: signal.alarm(0)" to make sure that a tes