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

Fix xarray's test suite with the dask master #3235

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Aug 20, 2019

We shouldn't be checking the details of dask's repr.

  • Tests added
  • Passes black . && mypy . && flake8

We shouldn't be checking the details of dask's repr.
@max-sixty
Copy link
Collaborator

Thanks

dask.array<array, shape=(4, 6), dtype=float64, chunksize=(2, 2)>"""
{!r}""".format(
self.lazy_var.data
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If these get any more complex, I've had great results using https://gitlab.com/uweschmitt/pytest-regtest - a snapshot / expect test framework - for string outputs that require checking but not explicitly constructing.

@shoyer shoyer merged commit 131f602 into pydata:master Aug 20, 2019
@shoyer shoyer deleted the dask-repr-relax branch August 20, 2019 22:25
@shoyer
Copy link
Member Author

shoyer commented Aug 20, 2019

Merging this now to keep our tests green...

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.

2 participants