Skip to content

Commit 7d0ba25

Browse files
committed
should be OK
1 parent adcde0f commit 7d0ba25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cf_xarray/tests/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import dask
66
import pytest
7+
from packaging import version
78

89

910
@contextmanager
@@ -59,7 +60,7 @@ def LooseVersion(vstring):
5960
# Our development version is something like '0.10.9+aac7bfc'
6061
# This function just ignored the git commit id.
6162
vstring = vstring.split("+")[0]
62-
return version.LooseVersion(vstring)
63+
return version.parse(vstring)
6364

6465

6566
has_cftime, requires_cftime = _importorskip("cftime")

0 commit comments

Comments
 (0)