Skip to content

Commit 054289f

Browse files
TST: fixed test expectation for 32 bit systems
1 parent 3508a9f commit 054289f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/io/parser/common/test_ints.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import numpy as np
99
import pytest
1010

11+
from pandas.compat import IS64
12+
1113
from pandas import (
1214
DataFrame,
1315
Series,
@@ -157,7 +159,7 @@ def test_integer_overflow_with_user_dtype(all_parsers, any_int_dtype, getval, ex
157159
(expected == _raises_any_integer_cast_exception)
158160
and (parser.engine == "python")
159161
and (not is_extension_array_dtype(dtype))
160-
and (dtype < np.dtype("int64"))
162+
and (dtype < np.dtype("int64" if IS64 else "int32"))
161163
and not (is_unsigned_integer_dtype(dtype) and (val < 0))
162164
):
163165
expected = tm.assert_produces_warning(

0 commit comments

Comments
 (0)