Skip to content

Commit 81cedd6

Browse files
authored
Drop failing tests writing multi-dimensional arrays as attributes (#2810)
These aren't valid for netCDF files. Fixes GH2803
1 parent a84ea12 commit 81cedd6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

xarray/tests/test_backends.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3444,11 +3444,6 @@ def new_dataset_and_coord_attrs():
34443444
with create_tmp_file() as tmp_file:
34453445
ds.to_netcdf(tmp_file)
34463446

3447-
ds, attrs = new_dataset_and_attrs()
3448-
attrs['test'] = np.arange(12).reshape(3, 4)
3449-
with create_tmp_file() as tmp_file:
3450-
ds.to_netcdf(tmp_file)
3451-
34523447
ds, attrs = new_dataset_and_attrs()
34533448
attrs['test'] = 'This is a string'
34543449
with create_tmp_file() as tmp_file:
@@ -3459,11 +3454,6 @@ def new_dataset_and_coord_attrs():
34593454
with create_tmp_file() as tmp_file:
34603455
ds.to_netcdf(tmp_file)
34613456

3462-
ds, attrs = new_dataset_and_attrs()
3463-
attrs['test'] = np.arange(12).reshape(3, 4)
3464-
with create_tmp_file() as tmp_file:
3465-
ds.to_netcdf(tmp_file)
3466-
34673457

34683458
@requires_scipy_or_netCDF4
34693459
class TestDataArrayToNetCDF(object):

0 commit comments

Comments
 (0)