summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-08-19 01:11:44 +0200
committerGitHub <noreply@github.com>2017-08-19 01:11:44 +0200
commit3e866dfaecaa4eb8f98c12782d2488f681225c37 (patch)
tree4d59eb30ae5734c433cd27b249fe7b22f9043bfe
parent83e37e16f3065086d721d4e62a3788e01db3431c (diff)
downloadcpython-git-3e866dfaecaa4eb8f98c12782d2488f681225c37.tar.gz
bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)
(cherry picked from commit a7719e27b3cad0f2b86cb932a76cbe55c541b02e)
-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 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):