Skip to content

Commit 945f1aa

Browse files
committed
Move fixed parameter to local variable
1 parent 08a5416 commit 945f1aa

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

pandas/tests/extension/test_masked.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,10 @@ 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

367367

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):
368+
@pytest.mark.parametrize("arr", [pd.array([True, False]), pd.array([1, 2])])
369+
def test_cast_pointwise_result_all_na_respects_original_dtype(arr):
376370
# GH#62344
371+
values = [pd.NA, pd.NA]
377372
result = arr._cast_pointwise_result(values)
378373
assert result.dtype == arr.dtype
379374
assert all(x is pd.NA for x in result)

0 commit comments

Comments
 (0)