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 5b2ee1a commit 89c64b5Copy full SHA for 89c64b5
mkl_random/__init__.py
@@ -29,6 +29,14 @@
29
from .mklrand import *
30
from ._version import __version__
31
32
-from numpy.testing.nosetester import _numpy_tester
33
-test = _numpy_tester().test
34
-bench = _numpy_tester().bench
+try:
+ from numpy.testing.nosetester import _numpy_tester
+ test = _numpy_tester().test
35
+ bench = _numpy_tester().bench
36
+ del _numpy_tester
37
+except ModuleNotFoundError:
38
+ # Pytest testing
39
+ from numpy._pytesttester import PytestTester
40
+ test = PytestTester(__name__)
41
+ del PytestTester
42
+
0 commit comments