[issue45187] Some tests in test_socket are not run
STINNER Victor
report at bugs.python.org
Mon Sep 20 03:56:00 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
> bpo-45187: Collect test_socket tests using unittest (GH-28317)
Nice enhancement! Thanks.
> self.addCleanup(thread.join, self.timeout)
I suggest to use test.support.threading_helper.join_thread() to avoid blocking if the thread raises an exception or never completes. The function has a timeout with a reasonable default value (adapted per buildbot).
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45187>
_______________________________________
More information about the Python-bugs-list
mailing list