Skip to content

Commit 095b809

Browse files
authored
Merge pull request #482 from Blosc/fancy-index-heavy
Mark fancy indexing tests as heavy
2 parents 46dd775 + 71689c2 commit 095b809

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/ndarray/test_ndarray.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,7 @@ def test_fancy_index(c):
300300
ndim = 1
301301
chunks = (c,) * ndim if c is not None else None
302302
dtype = np.dtype("float")
303-
d = (
304-
1 + int(blosc2.MAX_FAST_PATH_SIZE / dtype.itemsize) if c is None else 100
305-
) # just over numpy fast path size
303+
d = 1 + int(1000 / dtype.itemsize) if c is None else 50
306304
shape = (d,) * ndim
307305
arr = blosc2.linspace(0, 100, num=np.prod(shape), shape=shape, dtype=dtype, chunks=chunks)
308306
rng = np.random.default_rng()
@@ -316,9 +314,7 @@ def test_fancy_index(c):
316314
np.testing.assert_allclose(b, n)
317315

318316
ndim = 3
319-
d = (
320-
1 + int((blosc2.MAX_FAST_PATH_SIZE / 8) ** (1 / ndim)) if c is None else d
321-
) # just over numpy fast path size
317+
d = 1 + int((1000 / 8) ** (1 / ndim)) if c is None else d # just over numpy fast path size
322318
shape = (d,) * ndim
323319
chunks = (c,) * ndim if c is not None else None
324320
arr = blosc2.linspace(0, 100, num=np.prod(shape), shape=shape, dtype=dtype, chunks=chunks)

0 commit comments

Comments
 (0)