Skip to content

Commit

Permalink
Remove parentheses from assert statements. (#1213)
Browse files Browse the repository at this point in the history
They aren't needed, and this fixes a warning on newer
versions of flake8.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Jan 26, 2024
1 parent 9536f8e commit 070a323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rclpy/test/test_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def test_keep_last_zero_depth_constructor(self):
qos = QoSProfile(history=QoSHistoryPolicy.KEEP_LAST, depth=0)
assert len(caught_warnings) == 1
assert issubclass(caught_warnings[0].category, UserWarning)
assert("A zero depth with KEEP_LAST doesn't make sense" in str(caught_warnings[0]))
assert "A zero depth with KEEP_LAST doesn't make sense" in str(caught_warnings[0])
assert qos.history == QoSHistoryPolicy.KEEP_LAST

def test_keep_last_zero_depth_set(self):
Expand All @@ -145,7 +145,7 @@ def test_keep_last_zero_depth_set(self):
qos.depth = 0
assert len(caught_warnings) == 1
assert issubclass(caught_warnings[0].category, UserWarning)
assert("A zero depth with KEEP_LAST doesn't make sense" in str(caught_warnings[0]))
assert "A zero depth with KEEP_LAST doesn't make sense" in str(caught_warnings[0])


class TestCheckQosCompatibility(unittest.TestCase):
Expand Down

0 comments on commit 070a323

Please sign in to comment.