Skip to content

Commit

Permalink
Small fixes for modern flake8. (ros2#1264)
Browse files Browse the repository at this point in the history
It doesn't like to compare types with ==, so switch to
isinstance as appropriate.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
clalancette authored and InvincibleRMC committed Mar 27, 2024
1 parent 0bca600 commit 51889a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclpy/test/test_logging_rosout.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_enable_rosout(

if expected_data:
assert (rosout_subscription_msg is not None)
assert (type(rosout_subscription_msg) == Log)
assert (isinstance(rosout_subscription_msg, Log))
assert (LoggingSeverity(rosout_subscription_msg.level) == LoggingSeverity.INFO)
assert (len(rosout_subscription_msg.msg) != 0)
assert (rosout_subscription_msg.msg == message_data)
Expand Down

0 comments on commit 51889a4

Please sign in to comment.