Skip to content

Commit 3f18287

Browse files
committed
Muted previously enabled overflow tests
1 parent 28976dd commit 3f18287

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/third_party/cupy/sorting_tests/test_search.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,9 @@ def test_argmax_zero_size_axis1(self, xp, dtype):
8282
return a.argmax(axis=1)
8383

8484
@testing.slow
85+
@pytest.mark.skip("slow mark is not implemented")
8586
def test_argmax_int32_overflow(self):
86-
try:
87-
a = testing.shaped_arange((2**32 + 1,), cupy, numpy.float64)
88-
except MemoryError as e:
89-
pytest.skip("Not enough memory: " + str(e))
87+
a = testing.shaped_arange((2**32 + 1,), cupy, numpy.float64)
9088
assert a.argmax().item() == 2**32
9189

9290
@testing.for_all_dtypes(no_complex=True)
@@ -164,11 +162,9 @@ def test_argmin_zero_size_axis1(self, xp, dtype):
164162
return a.argmin(axis=1)
165163

166164
@testing.slow
165+
@pytest.mark.skip("slow mark is not implemented")
167166
def test_argmin_int32_overflow(self):
168-
try:
169-
a = testing.shaped_arange((2**32 + 1,), cupy, numpy.float64)
170-
except MemoryError as e:
171-
pytest.skip("Not enough memory: " + str(e))
167+
a = testing.shaped_arange((2**32 + 1,), cupy, numpy.float64)
172168
cupy.negative(a, out=a)
173169
assert a.argmin().item() == 2**32
174170

0 commit comments

Comments
 (0)