Commit a7719e27 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-31235: Fix ResourceWarning in test_logging (#3147)

parent 69669604
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment