Skip to content

Commit c7e5a05

Browse files
committed
fix append test
1 parent fe30c97 commit c7e5a05

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

pandas/tests/frame/methods/test_append.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,7 @@ def test_append_timestamps_aware_or_naive(self, tz_naive_fixture, timestamp):
241241
def test_other_dtypes(self, data, dtype, using_array_manager):
242242
df = DataFrame(data, dtype=dtype)
243243

244-
warn = None
245-
if using_array_manager and isinstance(dtype, pd.SparseDtype):
246-
warn = FutureWarning
247-
248-
with tm.assert_produces_warning(warn, match="astype from SparseDtype"):
249-
result = df._append(df.iloc[0]).iloc[-1]
244+
result = df._append(df.iloc[0]).iloc[-1]
250245

251246
expected = Series(data, name=0, dtype=dtype)
252247
tm.assert_series_equal(result, expected)

pandas/tests/indexing/test_loc.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,10 +1300,6 @@ def test_loc_getitem_time_object(self, frame_or_series):
13001300
@pytest.mark.parametrize("spmatrix_t", ["coo_matrix", "csc_matrix", "csr_matrix"])
13011301
@pytest.mark.parametrize("dtype", [np.int64, np.float64, complex])
13021302
@td.skip_if_no_scipy
1303-
@pytest.mark.filterwarnings(
1304-
# TODO(2.0): remove filtering; note only needed for using_array_manager
1305-
"ignore:The behavior of .astype from SparseDtype.*FutureWarning"
1306-
)
13071303
def test_loc_getitem_range_from_spmatrix(self, spmatrix_t, dtype):
13081304
import scipy.sparse
13091305

0 commit comments

Comments
 (0)