Skip to content

Commit b918323

Browse files
committed
casted typing
1 parent 73c4039 commit b918323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/extension/test_arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def test_compare_scalar(self, data, comparison_op):
282282
def test_map(self, data_missing, na_action):
283283
if data_missing.dtype.kind in "mM":
284284
result = pd.Series(data_missing.map(lambda x: x, na_action=na_action))
285-
expected = pd.Series(data_missing.to_numpy()).map(lambda x: x, na_action=na_action)
285+
expected = pd.Series(data_missing.to_numpy()).astype(result.dtype)
286286
tm.assert_series_equal(result, expected, check_dtype=False)
287287
else:
288288
result = data_missing.map(lambda x: x, na_action=na_action)

0 commit comments

Comments
 (0)