|
30 | 30 | assert_array_equal, assert_raises_regex, assert_array_almost_equal,
|
31 | 31 | assert_allclose, IS_PYPY, IS_WASM, IS_PYSTON, HAS_REFCOUNT,
|
32 | 32 | assert_array_less, runstring, temppath, suppress_warnings, break_cycles,
|
33 |
| - check_support_sve, assert_array_compare, |
| 33 | + check_support_sve, assert_array_compare, IS_64BIT |
34 | 34 | )
|
35 | 35 | from numpy.testing._private.utils import requires_memory, _no_tracing
|
36 | 36 | from numpy._core.tests._locales import CommaDecimalPointLocale
|
@@ -978,7 +978,7 @@ def test_too_big_error(self):
|
978 | 978 | assert_raises(ValueError, np.zeros, shape, dtype=np.int8)
|
979 | 979 | assert_raises(ValueError, np.ones, shape, dtype=np.int8)
|
980 | 980 |
|
981 |
| - @pytest.mark.skipif(np.dtype(np.intp).itemsize != 8, |
| 981 | + @pytest.mark.skipif(not IS_64BIT, |
982 | 982 | reason="malloc may not fail on 32 bit systems")
|
983 | 983 | def test_malloc_fails(self):
|
984 | 984 | # This test is guaranteed to fail due to a too large allocation
|
|
0 commit comments