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 8aa8649 commit 0568abd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rosbridge_library/test/capabilities/test_subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,8 @@ def test_update_params(self):
self.assertEqual(subscription.queue_length, min_queue_length)
self.assertEqual(subscription.fragment_size, min_frag_size)
self.assertEqual(subscription.compression, "png")
except: # noqa: E722 # Will unregister and raise
finally:
subscription.unregister()
raise

subscription.unregister()

def test_missing_arguments(self):
proto = Protocol("test_missing_arguments")
Expand Down

0 comments on commit 0568abd

Please sign in to comment.