Skip to content

Commit

Permalink
Fix NetCDF4 C version detection (#8675)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian authored Jan 27, 2024
1 parent ca4f121 commit e22b475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit e22b475

Please sign in to comment.