MCPcopy Index your code
hub / github.com/pydata/xarray / test_roundtrip_via_bytes

Method test_roundtrip_via_bytes

xarray/tests/test_backends.py:4965–4969  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4963
4964 @requires_scipy
4965 def test_roundtrip_via_bytes(self) -> None:
4966 original = create_test_data()
4967 netcdf_bytes = original.to_netcdf()
4968 roundtrip = load_dataset(netcdf_bytes)
4969 assert_identical(roundtrip, original)
4970
4971 @pytest.mark.xfail(
4972 reason="scipy.io.netcdf_file closes files upon garbage collection"

Callers

nothing calls this directly

Calls 4

load_datasetFunction · 0.90
assert_identicalFunction · 0.90
create_test_dataFunction · 0.85
to_netcdfMethod · 0.45

Tested by

no test coverage detected