Skip to content

Commit 3e866df

Browse files
authored
bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)
(cherry picked from commit a7719e2)
1 parent 83e37e1 commit 3e866df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎Lib/test/test_logging.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ def stop(self, timeout=None):
770770
"""
771771
self.close()
772772
self._thread.join(timeout)
773+
asyncore.close_all(map=self._map, ignore_all=True)
773774
self._thread = None
774775

775776
class ControlMixin(object):

0 commit comments

Comments
 (0)