Serhiy Storchaka added the comment:
As far as I understand threads reaping needed only when ThreadPoolExecutor is
used and children reaping needed only when ProcessPoolExecutor is used. Why not
use them only in tests which needs them?
class ThreadPoolMixin(ExecutorMixin):
executor_type = futures.ThreadPoolExecutor
def run(self, result):
key = test.support.threading_setup()
try:
return super().run(result)
finally:
test.support.threading_cleanup(*key)
class ProcessPoolMixin(ExecutorMixin):
executor_type = futures.ProcessPoolExecutor
def run(self, result):
try:
return super().run(result)
finally:
test.support.reap_children()
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16968>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com