Skip to content

Commit e22b475

Browse files
authored
Fix NetCDF4 C version detection (#8675)
1 parent ca4f121 commit e22b475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5416,7 +5416,7 @@ def test_write_file_from_np_str(str_type, tmpdir) -> None:
54165416
class TestNCZarr:
54175417
@property
54185418
def netcdfc_version(self):
5419-
return Version(nc4.getlibversion().split()[0])
5419+
return Version(nc4.getlibversion().split()[0].split("-development")[0])
54205420

54215421
def _create_nczarr(self, filename):
54225422
if self.netcdfc_version < Version("4.8.1"):

0 commit comments

Comments
 (0)