Skip to content

Conversation

@Rocketknight1
Copy link
Member

@Rocketknight1 Rocketknight1 commented Nov 20, 2025

test_use_safetensors was failing in the CI after #41580 because different error messages are returned in some cases, and this test inspected specific error message text.

This PR keeps the rest of the test, but removes the specific text check.

cc @ArthurZucker @ydshieh

@Rocketknight1 Rocketknight1 marked this pull request as ready for review November 20, 2025 14:33
Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

If we know the list of possible messages, we could still test it.

But with the self.assertRaises(OSError) itself, it's OK for me.

Thanks

@HuggingFaceDocBuilderDev

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.

@Rocketknight1
Copy link
Member Author

I think it's fine - I don't think we really care about the exact message contents!

@Rocketknight1 Rocketknight1 merged commit f765025 into main Nov 20, 2025
17 checks passed
@Rocketknight1 Rocketknight1 deleted the fix_test_use_safetensors branch November 20, 2025 14:42
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

ty, the error keeps changing it seems

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.

5 participants