Skip to content

Commit 2a57d9c

Browse files
committed
Merge pull request #296 from micahcochran/patch-1
Use LooseVersion in test.py
2 parents becb291 + e9bb7b7 commit 2a57d9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mpl_toolkits/basemap/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from distutils.version import LooseVersion
12
import sys
23
from mpl_toolkits.basemap import Basemap, shiftgrid
34
import numpy as np
@@ -159,7 +160,7 @@ def test_less_than_n_by_3_points_should_work(self):
159160
lonsout = bm.shiftdata(lonsin[:, :2])
160161
assert_almost_equal(lonsout_expected, lonsout)
161162

162-
@skipIf(PY3 and pyproj.__version__ <= "1.9.4",
163+
@skipIf(PY3 and LooseVersion(pyproj.__version__) <= LooseVersion("1.9.4"),
163164
"Test skipped in Python 3.x with pyproj version 1.9.4 and below.")
164165
class TestProjectCoords(TestCase):
165166
def get_data(self):

0 commit comments

Comments
 (0)