Skip to content

Commit 7ee07d1

Browse files
WIP: overflow
Co-authored-by: André Correia <[email protected]>
1 parent 91bb3c3 commit 7ee07d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/extension/test_masked.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ def check_reduce(self, ser: pd.Series, op_name: str, skipna: bool):
276276
# https://github.com/pandas-dev/pandas/issues/30958
277277

278278
cmp_dtype = "int64"
279+
if (op_name == "prod" and skipna and data.dtype.itemsize < 8
280+
and np.intp().itemsize < 8):
281+
pytest.xfail(reason=f"{op_name} with itemsize
282+
{data.dtype.itemsize} overflows")
279283
if ser.dtype.kind == "f":
280284
# Item "dtype[Any]" of "Union[dtype[Any], ExtensionDtype]" has
281285
# no attribute "numpy_dtype"

0 commit comments

Comments
 (0)