| 2503 | @pytest.mark.skipif(sys.maxsize < 2 ** 31 + 1, reason='overflows 32-bit python') |
| 2504 | @requires_memory(free_bytes=9e9) |
| 2505 | def test_dot_big_stride(self): |
| 2506 | # gh-17111 |
| 2507 | # blas stride = stride//itemsize > int32 max |
| 2508 | int32_max = np.iinfo(np.int32).max |
| 2509 | n = int32_max + 3 |
| 2510 | a = np.empty([n], dtype=np.float32) |
| 2511 | b = a[::n-1] |
| 2512 | b[...] = 1 |
| 2513 | assert b.strides[0] > int32_max * b.dtype.itemsize |
| 2514 | assert np.dot(b, b) == 2.0 |
| 2515 | |
| 2516 | def test_frompyfunc_name(self): |
| 2517 | # name conversion was failing for python 3 strings |