Skip to content

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

Merged
shoyer merged 1 commit into
pydata:masterfrom
shoyer:dask-repr-relax
Aug 20, 2019
Merged

Fix xarray's test suite with the dask master#3235
shoyer merged 1 commit into
pydata:masterfrom
shoyer:dask-repr-relax

Conversation

@shoyer

@shoyer shoyer commented Aug 20, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator

Thanks

Comment thread xarray/tests/test_dask.py
dask.array<array, shape=(4, 6), dtype=float64, chunksize=(2, 2)>"""
{!r}""".format(
self.lazy_var.data
)

Copy link
Copy Markdown
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

shoyer commented Aug 20, 2019

Copy link
Copy Markdown
Member Author

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