Skip to content

Commit 070a323

Browse files
authored
Remove parentheses from assert statements. (#1213)
They aren't needed, and this fixes a warning on newer versions of flake8. Signed-off-by: Chris Lalancette <[email protected]>
1 parent 9536f8e commit 070a323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclpy/test/test_qos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_keep_last_zero_depth_constructor(self):
133133
qos = QoSProfile(history=QoSHistoryPolicy.KEEP_LAST, depth=0)
134134
assert len(caught_warnings) == 1
135135
assert issubclass(caught_warnings[0].category, UserWarning)
136-
assert("A zero depth with KEEP_LAST doesn't make sense" in str(caught_warnings[0]))
136+
assert "A zero depth with KEEP_LAST doesn't make sense" in str(caught_warnings[0])
137137
assert qos.history == QoSHistoryPolicy.KEEP_LAST
138138

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

150150

151151
class TestCheckQosCompatibility(unittest.TestCase):

0 commit comments

Comments
 (0)