Skip to content

Commit

Permalink
try finally
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Aug 20, 2021
1 parent 0568abd commit 22340aa
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ def cb(msg):

try:
self.assertEqual(["hello"] + list(range(990, 1000)), received["msgs"])
except: # noqa: E722 # Will finish and raise
finally:
handler.finish()
raise

handler.finish()

def test_queue_message_handler_rate(self):
handler = subscribe.MessageHandler(None, self.dummy_cb)
Expand Down

0 comments on commit 22340aa

Please sign in to comment.