From 526a3959d5316a58f29ca9166896fd910cd275bb Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Thu, 14 Mar 2019 08:59:12 -0700 Subject: [PATCH] Drop failing tests writing multi-dimensional arrays as attributes (#2810) These aren't valid for netCDF files. Fixes GH2803 --- xarray/tests/test_backends.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index f610dba1352..c6ddb8fae58 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -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: @@ -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):