From d4c25e9ebbe594d139c2747db8960561dc8cef90 Mon Sep 17 00:00:00 2001 From: Artur Niederfahrenhorst Date: Sat, 9 Nov 2024 01:57:44 +0100 Subject: [PATCH] [Data] Fix usage of "id" in test_map (#48655) https://github.com/ray-project/ray/pull/47752 introduced a minor, silent issue in test_map. I stumbled across it because a linter I'm using complained. --- python/ray/data/tests/test_map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/data/tests/test_map.py b/python/ray/data/tests/test_map.py index 802049b328eb..9b1a4f8d4575 100644 --- a/python/ray/data/tests/test_map.py +++ b/python/ray/data/tests/test_map.py @@ -82,8 +82,8 @@ def test_basic_actors(shutdown_only): def _all_actors_dead(): actor_table = ray.state.actors() actors = { - id: actor_info - for actor_info in actor_table.values() + _id: actor_info + for _id, actor_info in actor_table.items() if actor_info["ActorClassName"] == _MapWorker.__name__ } assert len(actors) > 0