From e22b47511f4188e2203c5753de4a0a36094c2e83 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Fri, 26 Jan 2024 18:28:49 -0700 Subject: [PATCH] Fix NetCDF4 C version detection (#8675) --- xarray/tests/test_backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index 85afbc1e147..f3c8d6a12f1 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -5416,7 +5416,7 @@ def test_write_file_from_np_str(str_type, tmpdir) -> None: class TestNCZarr: @property def netcdfc_version(self): - return Version(nc4.getlibversion().split()[0]) + return Version(nc4.getlibversion().split()[0].split("-development")[0]) def _create_nczarr(self, filename): if self.netcdfc_version < Version("4.8.1"):