diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-27 23:51:03 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-27 23:51:03 +0200 |
commit | 92ff4e196bfd5361f231ab8629025d28af1decab (patch) | |
tree | 238c48b79e5f733e80ce37ac4d78c90a4910e47a /Lib/test/test_multiprocessing.py | |
parent | d0880d57b053179a8dd91f2b6fbcb5b5ddf56a1d (diff) | |
download | cpython-git-92ff4e196bfd5361f231ab8629025d28af1decab.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r-- | Lib/test/test_multiprocessing.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 4c22aefbda..799be702fc 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1966,6 +1966,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: l = cls.connection.Listener(family=fam) |