Skip to content
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

Replace id comparison by value comparison in tests #373

Merged
merged 2 commits into from
Nov 4, 2022

Conversation

aulemahal
Copy link
Contributor

Fixes #365

I believe that pydata/xarray#7089 fixed an issue with deepcopying that we were "using" to check if attributes were changed after the accessor is called. Now when we use ds.copy(deep=True) , well the copy is indeed deep and we can't compare the attribute's id.

This PR changes the idcheck to a complete equality check.

Copy link
Contributor

@dcherian dcherian left a comment

Choose a reason for hiding this comment

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

Thanks!

@aulemahal aulemahal merged commit a97ad1b into main Nov 4, 2022
@aulemahal aulemahal deleted the fix-tests-unchanged branch November 4, 2022 20:53
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.

⚠️ Nightly upstream-dev CI failed ⚠️
2 participants