Skip to content

Commit

Permalink
Drop failing tests writing multi-dimensional arrays as attributes (py…
Browse files Browse the repository at this point in the history
…data#2810)

These aren't valid for netCDF files.

Fixes GH2803
  • Loading branch information
shoyer authored and pletchm committed Mar 21, 2019
1 parent 54883ba commit 526a395
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -3444,11 +3444,6 @@ def new_dataset_and_coord_attrs():
with create_tmp_file() as tmp_file:
ds.to_netcdf(tmp_file)

ds, attrs = new_dataset_and_attrs()
attrs['test'] = np.arange(12).reshape(3, 4)
with create_tmp_file() as tmp_file:
ds.to_netcdf(tmp_file)

ds, attrs = new_dataset_and_attrs()
attrs['test'] = 'This is a string'
with create_tmp_file() as tmp_file:
Expand All @@ -3459,11 +3454,6 @@ def new_dataset_and_coord_attrs():
with create_tmp_file() as tmp_file:
ds.to_netcdf(tmp_file)

ds, attrs = new_dataset_and_attrs()
attrs['test'] = np.arange(12).reshape(3, 4)
with create_tmp_file() as tmp_file:
ds.to_netcdf(tmp_file)


@requires_scipy_or_netCDF4
class TestDataArrayToNetCDF(object):
Expand Down

0 comments on commit 526a395

Please sign in to comment.