@@ -110,7 +110,7 @@ def test_large_int_upper_2(self, xp, dtype):
110
110
if xp .issubdtype (dtype , xp .unsignedinteger ) or flag :
111
111
pytest .skip ("numpy doesn't raise OverflowError" )
112
112
113
- if dtype == xp .int8 and is_win_platform ():
113
+ if dtype in [ xp .int8 , xp . intc ] and is_win_platform ():
114
114
pytest .skip ("numpy promotes dtype differently" )
115
115
116
116
a = xp .array ([1 ], dtype = xp .int8 )
@@ -160,12 +160,11 @@ def test_large_int_lower_1(self, xp, dtype):
160
160
if dtype in [xp .int16 , xp .int32 , xp .int64 , xp .longlong ]:
161
161
pytest .skip ("numpy doesn't raise OverflowError" )
162
162
163
- if dtype == xp .int8 and is_win_platform ():
163
+ if dtype in [ xp .int8 , xp . intc ] and is_win_platform ():
164
164
pytest .skip ("numpy promotes dtype differently" )
165
165
166
166
a = xp .array ([0 ], dtype = xp .int8 )
167
167
b = xp .iinfo (dtype ).min
168
- res = a + b
169
168
return a + b
170
169
171
170
@testing .for_int_dtypes (no_bool = True )
@@ -175,7 +174,7 @@ def test_large_int_lower_2(self, xp, dtype):
175
174
if dtype in [xp .int16 , xp .int32 , xp .int64 , xp .longlong ]:
176
175
pytest .skip ("numpy doesn't raise OverflowError" )
177
176
178
- if dtype == xp .int8 and is_win_platform ():
177
+ if dtype in [ xp .int8 , xp . intc ] and is_win_platform ():
179
178
pytest .skip ("numpy promotes dtype differently" )
180
179
181
180
a = xp .array ([- 1 ], dtype = xp .int8 )
0 commit comments