Skip to content

TST Fix test to actually check writable and readable ndarrays #21853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

thomasjpfan
Copy link
Member

Reference Issues/PRs

Follow up to #21694

What does this implement/fix? Explain your changes.

Fixes test_pickle to actually check readable and writable arrays. On main, use_read_only_kwargs=True will alter the arrays in METRICS_DEFAULT_PARAMS by setting write=False. When use_read_only_kwargs=False, the arrays will remain not writable. This means only ndarrays with write=False are tested.

CC @jjerphan

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@ogrisel ogrisel merged commit 7d4be17 into scikit-learn:main Dec 2, 2021
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants