Skip to content

Commit e1083ee

Browse files
committed
Merge pull request #8504 from jreback/mpl_fix
COMPAT: matplotlib 1.4.0 version compat (GH8502)
2 parents 685eb0d + 9bfb8ec commit e1083ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/test_graphics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _skip_if_mpl_14_or_dev_boxplot():
3333
# Boxplot failures on 1.4 and 1.4.1
3434
# Don't need try / except since that's done at class level
3535
import matplotlib
36-
if matplotlib.__version__ >= LooseVersion('1.4'):
36+
if str(matplotlib.__version__) >= LooseVersion('1.4'):
3737
raise nose.SkipTest("Matplotlib Regression in 1.4 and current dev.")
3838

3939

@@ -72,7 +72,7 @@ def setUp(self):
7272
'weight': random.normal(161, 32, size=n),
7373
'category': random.randint(4, size=n)})
7474

75-
if mpl.__version__ >= LooseVersion('1.4'):
75+
if str(mpl.__version__) >= LooseVersion('1.4'):
7676
self.bp_n_objects = 7
7777
else:
7878
self.bp_n_objects = 8

0 commit comments

Comments
 (0)