From 03537efc83ad09ec5d69c4e0ed7dceb092328992 Mon Sep 17 00:00:00 2001 From: jreback Date: Sun, 6 Jul 2014 13:42:35 -0400 Subject: [PATCH 1/2] TST: skip buggy test on numpy < 1.7, 3.2, on 32-bits (GH6270) --- pandas/tests/test_series.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandas/tests/test_series.py b/pandas/tests/test_series.py index dece7be5fbbdf..fae403ebb653d 100644 --- a/pandas/tests/test_series.py +++ b/pandas/tests/test_series.py @@ -1,5 +1,6 @@ # pylint: disable-msg=E1101,W0612 +import sys from datetime import datetime, timedelta import operator import string @@ -5541,6 +5542,11 @@ def test_isin_with_i8(self): #------------------------------------------------------------------------------ # TimeSeries-specific def test_cummethods_bool(self): + # GH 6270 + # looks like a buggy np.maximum.accumulate for numpy 1.6.1, py 3.2 + if _np_version_under1p7 and sys.version_info[0] == 3 and sys.version_info[1] == 2: + raise nose.SkipTest("failure of GH6270 on numpy < 1.7 and py 3.2") + def cummin(x): return np.minimum.accumulate(x) From 24dbfc5082c7bd8831bf3dbdecb34db0c942c9ae Mon Sep 17 00:00:00 2001 From: jreback Date: Mon, 7 Jul 2014 11:23:01 -0400 Subject: [PATCH 2/2] TST: skip buggy test if can't form test comparison (GH7664) --- pandas/tseries/tests/test_plotting.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/tseries/tests/test_plotting.py b/pandas/tseries/tests/test_plotting.py index f7aaf3e273b40..0bdba3751b6fd 100644 --- a/pandas/tseries/tests/test_plotting.py +++ b/pandas/tseries/tests/test_plotting.py @@ -132,7 +132,10 @@ def check_format_of_first_point(ax, expected_string): first_line = ax.get_lines()[0] first_x = first_line.get_xdata()[0].ordinal first_y = first_line.get_ydata()[0] - self.assertEqual(expected_string, ax.format_coord(first_x, first_y)) + try: + self.assertEqual(expected_string, ax.format_coord(first_x, first_y)) + except (ValueError): + raise nose.SkipTest("skipping test because issue forming test comparison GH7664") annual = Series(1, index=date_range('2014-01-01', periods=3, freq='A-DEC')) check_format_of_first_point(annual.plot(), 't = 2014 y = 1.000000')