Skip to content

Commit 9ec9dbc

Browse files
committed
Fix a failing test ...
that was failing due to introduced dispatch to assert_sp_series_equal being too strict.
1 parent 98a52cb commit 9ec9dbc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pandas/tests/series/test_constructors.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
from pandas._libs import lib
2121
from pandas._libs.tslib import iNaT
2222

23-
from pandas.compat import lrange, range, zip, OrderedDict, long
24-
from pandas import compat
23+
from pandas.compat import lrange, range, zip, long
2524
from pandas.util.testing import assert_series_equal
2625
import pandas.util.testing as tm
2726

pandas/tests/sparse/test_frame.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1002,12 +1002,14 @@ def _check(frame, orig):
10021002

10031003
shifted = frame.shift(2, freq='B')
10041004
exp = orig.shift(2, freq='B')
1005-
exp = exp.to_sparse(frame.default_fill_value)
1005+
exp = exp.to_sparse(frame.default_fill_value,
1006+
kind=frame.default_kind)
10061007
tm.assert_frame_equal(shifted, exp)
10071008

10081009
shifted = frame.shift(2, freq=BDay())
10091010
exp = orig.shift(2, freq=BDay())
1010-
exp = exp.to_sparse(frame.default_fill_value)
1011+
exp = exp.to_sparse(frame.default_fill_value,
1012+
kind=frame.default_kind)
10111013
tm.assert_frame_equal(shifted, exp)
10121014

10131015
self._check_all(_check)

0 commit comments

Comments
 (0)