The test was looking for a UserWarning with specific text that was changed in numpy. Fix it by making a much less specific regex and that will be compatible with both versions. Also fix a FutureWarning about accessing xarray.Dataset dimension sizes (should use .sizes instead of .dims).
The test was looking for a
UserWarning
with specific text that was changed in numpy. Fix it by making a much less specific regex and that will be compatible with both versions. Also fix aFutureWarning
about accessingxarray.Dataset
dimension sizes (should use.sizes
instead of.dims
).