Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 46920ad

Browse filesBrowse 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
Copy full SHA for 46920ad

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.