Issue #14666: stop multiprocessing's resource-sharing thread after the tests are done.

Also, block delivery of signals to that thread. Patch by Richard Oudkerk.

This will hopefully fix sporadic freezes on the FreeBSD 9.0 buildbot.
This commit is contained in:
Antoine Pitrou 2012-04-27 23:51:03 +02:00
parent d0880d57b0
commit 92ff4e196b
2 changed files with 33 additions and 1 deletions

View file

@ -1965,6 +1965,11 @@ class _TestPicklingConnections(BaseTestCase):
ALLOWED_TYPES = ('processes',)
@classmethod
def tearDownClass(cls):
from multiprocessing.reduction import resource_sharer
resource_sharer.stop(timeout=5)
@classmethod
def _listener(cls, conn, families):
for fam in families: