From 9bfb8ec735a1d15dcd3c9804d1f12f7e33ce19e9 Mon Sep 17 00:00:00 2001 From: jreback Date: Tue, 7 Oct 2014 15:15:38 -0400 Subject: [PATCH] COMPAT: matplotlib 1.4.0 version compat (GH8502) --- pandas/tests/test_graphics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 566f8a133a2c2..1793d6806be83 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -33,7 +33,7 @@ def _skip_if_mpl_14_or_dev_boxplot(): # Boxplot failures on 1.4 and 1.4.1 # Don't need try / except since that's done at class level import matplotlib - if matplotlib.__version__ >= LooseVersion('1.4'): + if str(matplotlib.__version__) >= LooseVersion('1.4'): raise nose.SkipTest("Matplotlib Regression in 1.4 and current dev.") @@ -72,7 +72,7 @@ def setUp(self): 'weight': random.normal(161, 32, size=n), 'category': random.randint(4, size=n)}) - if mpl.__version__ >= LooseVersion('1.4'): + if str(mpl.__version__) >= LooseVersion('1.4'): self.bp_n_objects = 7 else: self.bp_n_objects = 8