From a7719e27b3cad0f2b86cb932a76cbe55c541b02e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 19 Aug 2017 00:34:00 +0200 Subject: bpo-31235: Fix ResourceWarning in test_logging (#3147) --- Lib/test/test_logging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 226532a..f4aef9f 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -797,6 +797,8 @@ if threading: """ self.close() self._thread.join(timeout) + asyncore.close_all(map=self._map, ignore_all=True) + alive = self._thread.is_alive() self._thread = None if alive: -- cgit v0.12