STINNER Victor added the comment:

I modified the socketserver module so server_close() now waits until all 
spawned threads or processes completed. It should help to avoid such random 
failure.

Modifying server_close() default behaviour in Python 2.7 or 3.6 is not 
possible, so maybe we need to modify test_socketserver to use a private API to 
wait for threads/processes?

----------

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

Reply via email to