From: Victor Stinner Date: Fri, 18 Aug 2017 23:11:44 +0000 (+0200) Subject: bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149) X-Git-Tag: v3.6.3rc1~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e866dfaecaa4eb8f98c12782d2488f681225c37;p=python bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149) (cherry picked from commit a7719e27b3cad0f2b86cb932a76cbe55c541b02e) --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 474affdaeb..4ec02e1009 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):