Skip to content

Commit ea3090f

Browse files
committed
Fix generator
1 parent 48c7dec commit ea3090f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ndarray/test_getitem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_take_along_axis(shape, chunkshape, axis):
206206
# Make some indices with same shape except for the given axis
207207
indices_shape = list(shape)
208208
indices_shape[axis] = 2 # we'll take 2 indices along that axis
209-
rng = np.random.Generator()
209+
rng = np.random.default_rng()
210210
indices = rng.integers(0, shape[axis], size=indices_shape)
211211

212212
# NumPy expected

0 commit comments

Comments
 (0)