We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0628bc5 commit a297184Copy full SHA for a297184
mkl_random/tests/test_regression.py
@@ -29,7 +29,6 @@
29
assert_array_equal, assert_raises)
30
import mkl_random as rnd
31
import numpy as np
32
-from numpy import long
33
34
import pytest
35
import gc
@@ -78,7 +77,9 @@ def test_permutation_longs():
78
77
rnd.seed(1234, brng='MT19937')
79
a = rnd.permutation(12)
80
81
- b = rnd.permutation(long(12))
+ dt_long = np.dtype("long")
+ twelve_long = dt_long.type(12)
82
+ b = rnd.permutation(twelse_long)
83
assert_array_equal(a, b)
84
85
0 commit comments