Kaydet (Commit) a7719e27 authored tarafından Victor Stinner's avatar Victor Stinner Kaydeden (comit) GitHub

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

üst 69669604
...@@ -797,6 +797,8 @@ if threading: ...@@ -797,6 +797,8 @@ if threading:
""" """
self.close() self.close()
self._thread.join(timeout) self._thread.join(timeout)
asyncore.close_all(map=self._map, ignore_all=True)
alive = self._thread.is_alive() alive = self._thread.is_alive()
self._thread = None self._thread = None
if alive: 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