Skip to content

Commit 08a5416

Browse files
committed
Separate independent test function
1 parent da8e156 commit 08a5416

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

pandas/tests/extension/test_masked.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,16 @@ def check_accumulate(self, ser: pd.Series, op_name: str, skipna: bool):
364364
def test_loc_setitem_with_expansion_preserves_ea_index_dtype(self, data, request):
365365
super().test_loc_setitem_with_expansion_preserves_ea_index_dtype(data)
366366

367-
@pytest.mark.parametrize(
368-
"arr, values",
369-
[
370-
(pd.array([True, False]), [pd.NA, pd.NA]),
371-
(pd.array([1, 2]), [pd.NA, pd.NA]),
372-
],
373-
)
374-
def test_cast_pointwise_result_all_na_respects_original_dtype(self, arr, values):
375-
# GH#62344
376-
result = arr._cast_pointwise_result(values)
377-
assert result.dtype == arr.dtype
378-
assert all(x is pd.NA for x in result)
367+
368+
@pytest.mark.parametrize(
369+
"arr, values",
370+
[
371+
(pd.array([True, False]), [pd.NA, pd.NA]),
372+
(pd.array([1, 2]), [pd.NA, pd.NA]),
373+
],
374+
)
375+
def test_cast_pointwise_result_all_na_respects_original_dtype(arr, values):
376+
# GH#62344
377+
result = arr._cast_pointwise_result(values)
378+
assert result.dtype == arr.dtype
379+
assert all(x is pd.NA for x in result)

0 commit comments

Comments
 (0)