mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-15 08:39:49 +00:00
fix(processors): make sure nested dict are also shallow copied (#1939)
This commit is contained in:
@@ -1172,8 +1172,6 @@ def test_task_processing_creates_new_transition():
|
||||
|
||||
# Should be different transition object (functional design)
|
||||
assert result is not original_transition
|
||||
# But complementary_data is the same reference (current implementation behavior)
|
||||
assert result[TransitionKey.COMPLEMENTARY_DATA] is original_comp_data
|
||||
# The task should be processed correctly (wrapped in list)
|
||||
assert result[TransitionKey.COMPLEMENTARY_DATA]["task"] == ["sort_objects"]
|
||||
# Original complementary data is also modified (current behavior)
|
||||
|
||||
Reference in New Issue
Block a user