mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
d0880d57b0
commit
92ff4e196b
2 changed files with 33 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue