diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-02 15:48:20 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2018-04-04 06:40:28 -0600 |
commit | cf46d8cd2aa809be44b684ba234880e0aa4befe9 (patch) | |
tree | a088359008c9264d9ca6bbe7fe34c2c4440481a3 /numpy/testing/__init__.py | |
parent | 7e5a41de9fab731e27a761c01302a0a93e2d1070 (diff) | |
download | numpy-cf46d8cd2aa809be44b684ba234880e0aa4befe9.tar.gz |
TST: Update modules `test` to PytestTester.
Numpy can now be tested using the standard
`python -c"import numpy; numpy.test()"`
construct.
Diffstat (limited to 'numpy/testing/__init__.py')
-rw-r--r-- | numpy/testing/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py index f4970b06b..a7c85931c 100644 --- a/numpy/testing/__init__.py +++ b/numpy/testing/__init__.py @@ -12,9 +12,11 @@ from unittest import TestCase from ._private.utils import * from ._private import decorators as dec from ._private.nosetester import ( - run_module_suite, NoseTester as Tester, _numpy_tester, + run_module_suite, NoseTester as Tester ) __all__ = _private.utils.__all__ + ['TestCase', 'run_module_suite'] -test = _numpy_tester().test +from ._private.pytesttester import PytestTester +test = PytestTester(__name__) +del PytestTester |