Skip to content

Commit

Permalink
test: try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Dec 25, 2024
1 parent e351d59 commit 36259e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ def tearDown(self):
super(TestCircus, self).tearDown()
# Clean up the event loop
loop = self.io_loop
if loop is not None and not loop._closing:
loop.close(all_fds=True)
if loop is not None:
try:
loop.close(all_fds=True)
except Exception:
pass

def make_plugin(self, klass, endpoint=DEFAULT_ENDPOINT_DEALER,
sub=DEFAULT_ENDPOINT_SUB, check_delay=1,
Expand Down

0 comments on commit 36259e1

Please sign in to comment.