Skip to content

Commit 4720e8f

Browse files
committed
fix error message
1 parent 4146c21 commit 4720e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/series/test_series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@ def test_astype_int(cast_arg: IntDtypeArg, target_type: type) -> None:
26292629
s_astype = s.astype(cast_arg)
26302630
if (LINUX or MAC) and cast_arg in {np.longlong, "longlong", "q"}:
26312631
# TODO: pandas-dev/pandas#54252 longlong is bugged on Linux and Mac
2632-
msg = rf"Expected type '{cast_arg}' but got '{type(s_astype.iloc[0])}'"
2632+
msg = rf"Expected type '{target_type}' but got '{type(s_astype.iloc[0])}'"
26332633
with pytest.raises(RuntimeError, match=msg):
26342634
check(s_astype, pd.Series, target_type)
26352635
else:

0 commit comments

Comments
 (0)