STINNER Victor added the comment:

When we talk about signals, we must always be careful of threads. Python unit 
tests are known (at least by me ;-)) to "leak" threads. IMO the first step to 
make the test more reliable is to start it in a fresh process to control 
exactly the number of threads.

A fresh process avoids also to inherit an expected signal and/or signal handler.

I modified test_eintr recently to do something similar.

----------

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

Reply via email to