ros2 / ros2cli

ROS 2 command line interface tools
Apache License 2.0
173 stars 159 forks source link

ros2param/test/test_api.py: Warning: get_parameter_value() is deprecated. #865

Closed fujitatomoya closed 10 months ago

fujitatomoya commented 10 months ago

Bug report

Required Info:

Steps to reproduce issue

root@tomoyafujita:~/ros2_ws/colcon_ws# colcon test --event-handlers console_direct+ --packages-select ros2param
...

================= 25 passed, 20 warnings in 125.65s (0:02:05) ==================

=============================== warnings summary ===============================
ros2param/test/test_api.py: 18 warnings
  Warning: get_parameter_value() is deprecated. Use rclpy.parameter.get_parameter_value instead

ros2param/test/test_flake8.py::test_flake8
ros2param/test/test_flake8.py::test_flake8
  Warning: SelectableGroups dict interface is deprecated. Use select.

-- Docs: https://docs.pytest.org/en/stable/warnings.html
--- stderr: ros2param

=============================== warnings summary ===============================
ros2param/test/test_api.py: 18 warnings
  Warning: get_parameter_value() is deprecated. Use rclpy.parameter.get_parameter_value instead

ros2param/test/test_flake8.py::test_flake8
ros2param/test/test_flake8.py::test_flake8
  Warning: SelectableGroups dict interface is deprecated. Use select.

-- Docs: https://docs.pytest.org/en/stable/warnings.html
---
Finished <<< ros2param [2min 7s]

Summary: 1 package finished [2min 8s]
  1 package had stderr output: ros2param

Expected behavior

No warnings.

Actual behavior

ros2param/test/test_api.py: 18 warnings Warning: get_parameter_value() is deprecated. Use rclpy.parameter.get_parameter_value instead