Skip to content

Commit 417ef84

Browse files
Remove the loop parameter from async.sleep. (#155) (#200)
This removes a warning of the form: test/test_launch_ros/test_track_node_names.py::test_launch_nodes_with_different_names Warning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. Signed-off-by: Chris Lalancette <[email protected]> Co-authored-by: Chris Lalancette <[email protected]>
1 parent c3b3be0 commit 417ef84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_launch_ros/test/test_launch_ros/test_track_node_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _launch(launch_description):
4848
ls = LaunchService()
4949
ls.include_launch_description(launch_description)
5050
launch_task = loop.create_task(ls.run_async())
51-
loop.run_until_complete(asyncio.sleep(5, loop=loop))
51+
loop.run_until_complete(asyncio.sleep(5))
5252
if not launch_task.done():
5353
loop.create_task(ls.shutdown())
5454
loop.run_until_complete(launch_task)

0 commit comments

Comments
 (0)