Skip to content

Commit 57442a1

Browse files
Updated tests to no use removed qualifiers
1 parent 65b6392 commit 57442a1

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

mkl_random/tests/test_random.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import numpy as np
3030
from unittest import TestCase
3131
from numpy.testing import (
32-
run_module_suite, assert_, assert_raises, assert_equal,
32+
assert_, assert_raises, assert_equal,
3333
assert_warns, suppress_warnings)
3434
import mkl_random as rnd
3535
from numpy.compat import asbytes
@@ -952,7 +952,3 @@ def test_multinomial(self):
952952
def gen_random(state, out):
953953
out[...] = state.multinomial(10, [1/6.]*6, size=10000)
954954
self.check_function(gen_random, sz=(10000,6))
955-
956-
957-
if __name__ == "__main__":
958-
run_module_suite()

mkl_random/tests/test_regression.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

2727
import sys
28-
from numpy.testing import (TestCase, run_module_suite, assert_,
29-
assert_array_equal, assert_raises, dec)
30-
import mkl
28+
from numpy.testing import (TestCase, assert_,
29+
assert_array_equal, assert_raises)
3130
import mkl_random as rnd
3231
from numpy.compat import long
3332
import numpy as np
@@ -117,8 +116,6 @@ def test_multivariate_normal_size_types(self):
117116
rnd.multivariate_normal([0], [[0]], size=np.int_(1))
118117
rnd.multivariate_normal([0], [[0]], size=np.int64(1))
119118

120-
# @dec.skipif(tuple(map(mkl.get_version().get, ['MajorVersion', 'UpdateVersion'])) == (2020,3),
121-
# msg="Intel(R) MKL 2020.3 produces NaN for these parameters")
122119
def test_beta_small_parameters(self):
123120
# Test that beta with small a and b parameters does not produce
124121
# NaNs due to roundoff errors causing 0 / 0, gh-5851
@@ -173,7 +170,3 @@ def test_shuffle_of_array_of_objects(self):
173170
def test_non_central_chi_squared_df_one(self):
174171
a = rnd.noncentral_chisquare(df = 1.0, nonc=2.3, size=10**4)
175172
assert(a.min() > 0.0)
176-
177-
178-
if __name__ == "__main__":
179-
run_module_suite()

0 commit comments

Comments
 (0)