summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-08-18 22:34:00 (GMT)
committerGitHub <noreply@github.com>2017-08-18 22:34:00 (GMT)
commita7719e27b3cad0f2b86cb932a76cbe55c541b02e (patch)
tree86c432e7b117b4aff9f3888ea586fe18503428b1 /Lib
parent6966960468327c958b03391f71f24986bd697307 (diff)
downloadcpython-a7719e27b3cad0f2b86cb932a76cbe55c541b02e.zip
cpython-a7719e27b3cad0f2b86cb932a76cbe55c541b02e.tar.gz
cpython-a7719e27b3cad0f2b86cb932a76cbe55c541b02e.tar.bz2
bpo-31235: Fix ResourceWarning in test_logging (#3147)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 2 insertions, 0 deletions
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: