bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)

(cherry picked from commit a7719e27b3)
This commit is contained in:
Victor Stinner 2017-08-19 01:11:44 +02:00 committed by GitHub
parent 83e37e16f3
commit 3e866dfaec

View file

@ -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):