Skip to content

Commit 46920ad

Browse files
authored
Merge pull request #6558 from jenshnielsen/v2.xfixnumpylooseversion
Make sure that loose version is used for version check
2 parents 1512593 + b27e978 commit 46920ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_axes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import six
55
from six.moves import xrange
66
from itertools import chain
7+
from distutils.version import LooseVersion
78
import io
89

910
from nose.tools import assert_equal, assert_raises, assert_false, assert_true
@@ -88,7 +89,7 @@ def test_formatter_ticker():
8889

8990
@image_comparison(baseline_images=["formatter_large_small"])
9091
def test_formatter_large_small():
91-
if tuple(map(int, np.__version__.split('.'))) >= (1, 11, 0):
92+
if LooseVersion(np.__version__) >= LooseVersion('1.11.0'):
9293
raise KnownFailureTest("Fall out from a fixed numpy bug")
9394
# github issue #617, pull #619
9495
fig, ax = plt.subplots(1)

0 commit comments

Comments
 (0)