diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 474affdaebc..4ec02e10093 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -770,6 +770,7 @@ if threading: """ self.close() self._thread.join(timeout) + asyncore.close_all(map=self._map, ignore_all=True) self._thread = None class ControlMixin(object):