Skip to content

Commit a297184

Browse files
Replaced use of np.long
1 parent 0628bc5 commit a297184

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mkl_random/tests/test_regression.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
assert_array_equal, assert_raises)
3030
import mkl_random as rnd
3131
import numpy as np
32-
from numpy import long
3332

3433
import pytest
3534
import gc
@@ -78,7 +77,9 @@ def test_permutation_longs():
7877
rnd.seed(1234, brng='MT19937')
7978
a = rnd.permutation(12)
8079
rnd.seed(1234, brng='MT19937')
81-
b = rnd.permutation(long(12))
80+
dt_long = np.dtype("long")
81+
twelve_long = dt_long.type(12)
82+
b = rnd.permutation(twelse_long)
8283
assert_array_equal(a, b)
8384

8485

0 commit comments

Comments
 (0)