Skip to content

Commit 4c79a11

Browse files
committed
Merge pull request #7675 from jreback/skip_test
TST: skip buggy tests on debian (GH6270, GH7664)
2 parents 87436a3 + 24dbfc5 commit 4c79a11

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pandas/tests/test_series.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pylint: disable-msg=E1101,W0612
22

3+
import sys
34
from datetime import datetime, timedelta
45
import operator
56
import string
@@ -5541,6 +5542,11 @@ def test_isin_with_i8(self):
55415542
#------------------------------------------------------------------------------
55425543
# TimeSeries-specific
55435544
def test_cummethods_bool(self):
5545+
# GH 6270
5546+
# looks like a buggy np.maximum.accumulate for numpy 1.6.1, py 3.2
5547+
if _np_version_under1p7 and sys.version_info[0] == 3 and sys.version_info[1] == 2:
5548+
raise nose.SkipTest("failure of GH6270 on numpy < 1.7 and py 3.2")
5549+
55445550
def cummin(x):
55455551
return np.minimum.accumulate(x)
55465552

pandas/tseries/tests/test_plotting.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ def check_format_of_first_point(ax, expected_string):
132132
first_line = ax.get_lines()[0]
133133
first_x = first_line.get_xdata()[0].ordinal
134134
first_y = first_line.get_ydata()[0]
135-
self.assertEqual(expected_string, ax.format_coord(first_x, first_y))
135+
try:
136+
self.assertEqual(expected_string, ax.format_coord(first_x, first_y))
137+
except (ValueError):
138+
raise nose.SkipTest("skipping test because issue forming test comparison GH7664")
136139

137140
annual = Series(1, index=date_range('2014-01-01', periods=3, freq='A-DEC'))
138141
check_format_of_first_point(annual.plot(), 't = 2014 y = 1.000000')

0 commit comments

Comments
 (0)