From cf46d8cd2aa809be44b684ba234880e0aa4befe9 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Mon, 2 Apr 2018 15:48:20 -0600 Subject: TST: Update modules `test` to PytestTester. Numpy can now be tested using the standard `python -c"import numpy; numpy.test()"` construct. --- numpy/testing/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'numpy/testing') 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 -- cgit v1.2.1