Skip to content

Commit 0a5026f

Browse files
author
TomAugspurger
committed
TST: Precision issues with infer on OSX
1 parent da89834 commit 0a5026f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/test_generic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ def test_nan_str_index(self):
478478
def test_interp_quad(self):
479479
_skip_if_no_scipy()
480480
sq = Series([1, 4, np.nan, 16], index=[1, 2, 3, 4])
481-
result = sq.interpolate(method='quadratic')
482-
expected = Series([1, 4, 9, 16], index=[1, 2, 3, 4])
483-
assert_series_equal(result, expected)
481+
result = sq.interpolate(method='quadratic', downcast=False)
482+
expected = Series([1., 4, 9, 16], index=[1, 2, 3, 4])
483+
assert_series_equal(result, expected, check_less_precise=True)
484484

485485
def test_interp_scipy_basic(self):
486486
_skip_if_no_scipy()

0 commit comments

Comments
 (0)