[Python-checkins] bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)
Victor Stinner
webhook-mailer at python.org
Fri Aug 18 19:11:47 EDT 2017
https://github.com/python/cpython/commit/3e866dfaecaa4eb8f98c12782d2488f681225c37
commit: 3e866dfaecaa4eb8f98c12782d2488f681225c37
branch: 3.6
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-08-19T01:11:44+02:00
summary:
bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)
(cherry picked from commit a7719e27b3cad0f2b86cb932a76cbe55c541b02e)
files:
M Lib/test/test_logging.py
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 474affdaebc..4ec02e10093 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -770,6 +770,7 @@ def stop(self, timeout=None):
"""
self.close()
self._thread.join(timeout)
+ asyncore.close_all(map=self._map, ignore_all=True)
self._thread = None
class ControlMixin(object):
More information about the Python-checkins
mailing list