Remove an unnecessary list comprehension in a test. (#832)
Remove an unnecessary list comprehension in a test. (#832)

This was pointed out by a newer version of flake8 and
flake8-comprehension.

Signed-off-by: Chris Lalancette <281cd07d7578d97c83271fbbf2faddb83ab3791c@openrobotics.org>
ros2/rclpy,ros2/rclpy