STINNER Victor <victor.stin...@haypocalc.com> added the comment:

>Don't Try to use any fancy way to check if the join will hang,
> leave all the job to faulthandler.    

> Victor, do you agree with the simpler method, depending
> on faulthandler to catch a hang in the test and fail it?
> Or is the explicit timeout better?

If the patch fixes the hang, there is no good reason to write code to handle a 
new hang.

We have generic "watchdogs":

 - buildbot timeout (any Python version)
 - regrtest timeout implemented using faulthandler (only in Python 3.x)

If you run directly the .py test file on a command line, you can still use 
CTRL+c or CTRL+z to interrupt / stop the process.

You may want to improve these generic watchdogs, but write a specific watchdog 
for one specific test function looks useless to me.

Remember that timeouts are not reliable: we have sometimes false failures 
because of very slow buildbots... For regrtest timeout, I tried 10, 15, 20 and 
30 minutes before choosing a timeout of 60 minutes. For lower values, we have 
many false failures.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12157>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to