summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-08-18 23:11:44 (GMT)
committerGitHub <noreply@github.com>2017-08-18 23:11:44 (GMT)
commit3e866dfaecaa4eb8f98c12782d2488f681225c37 (patch)
tree4d59eb30ae5734c433cd27b249fe7b22f9043bfe /Lib/test
parent83e37e16f3065086d721d4e62a3788e01db3431c (diff)
downloadcpython-3e866dfaecaa4eb8f98c12782d2488f681225c37.zip
cpython-3e866dfaecaa4eb8f98c12782d2488f681225c37.tar.gz
cpython-3e866dfaecaa4eb8f98c12782d2488f681225c37.tar.bz2
bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)
(cherry picked from commit a7719e27b3cad0f2b86cb932a76cbe55c541b02e)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_logging.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 474affd..4ec02e1 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):