Skip to content

fix test_register_result_handler#45188

Merged
ydshieh merged 1 commit intomainfrom
fix_test_register_result_handler
Apr 3, 2026
Merged

fix test_register_result_handler#45188
ydshieh merged 1 commit intomainfrom
fix_test_register_result_handler

Conversation

@SunMarc
Copy link
Copy Markdown
Member

@SunMarc SunMarc commented Apr 2, 2026

What does this PR do ?

This PR fixes the test_register_result_handler. Not sure how it passed in the past when i added it but since CB returns generated_tokens from the same list to avoid copy, len(results[i].generated_tokens) for i =0,1,2 will always be the same after the got all the results. I reworked a bit the test to properly test.

@SunMarc SunMarc requested review from ArthurZucker and remi-or April 2, 2026 13:16
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Copy Markdown
Collaborator

@remi-or remi-or left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SunMarc SunMarc added this pull request to the merge queue Apr 3, 2026
@ydshieh ydshieh removed this pull request from the merge queue due to a manual request Apr 3, 2026
@ydshieh ydshieh merged commit 66b6e9f into main Apr 3, 2026
21 checks passed
@ydshieh ydshieh deleted the fix_test_register_result_handler branch April 3, 2026 09:37
marvinzh pushed a commit to marvinzh/transformers that referenced this pull request Apr 3, 2026
fix test_register_result_handler
SangbumChoi pushed a commit to SangbumChoi/transformers that referenced this pull request Apr 4, 2026
fix test_register_result_handler
sirzechs66 pushed a commit to sirzechs66/transformers that referenced this pull request Apr 18, 2026
fix test_register_result_handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants