Skip to content

Commit fcfa9e9

Browse files
committed
another load_data() test
1 parent 26f63e6 commit fcfa9e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xray/test/test_backends.py

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ def assert_loads(vars=None):
9797
with assert_loads(['var1', 'dim1', 'dim2']) as ds:
9898
ds['var1'].load_data()
9999

100+
# verify we can read data even after closing the file
101+
with self.roundtrip(expected) as ds:
102+
actual = ds.load_data()
103+
self.assertDatasetAllClose(expected, actual)
104+
100105
def test_roundtrip_None_variable(self):
101106
expected = Dataset({None: (('x', 'y'), [[0, 1], [2, 3]])})
102107
with self.roundtrip(expected) as actual:

0 commit comments

Comments
 (0)