diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-07-04 13:47:45 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-07-04 19:51:58 -0600 |
commit | ae84af3b6e6d96e4be408e8a56408290ee1879db (patch) | |
tree | 0eff73d96f270e8d3aed3fc660e9926f023fde0d /numpy/polynomial | |
parent | 0e4253526c727f50696f6233fee3d50a419ba9fe (diff) | |
download | python-numpy-ae84af3b6e6d96e4be408e8a56408290ee1879db.tar.gz python-numpy-ae84af3b6e6d96e4be408e8a56408290ee1879db.tar.bz2 python-numpy-ae84af3b6e6d96e4be408e8a56408290ee1879db.zip |
MAINT: Rearrange files in numpy/testing module.
The aim here is to separate out the nose dependent files prior to adding
pytest support. This could be done by adding new files to the general
numpy/testing directory, but I felt that it was to have the relevant
files separated out as it makes it easier to completely remove nose
dependencies when needed.
Many places were accessing submodules in numpy/testing directly, and in
some cases incorrectly. That presented a backwards compatibility
problem. The solution adapted here is to have "dummy" files whose
contents will depend on whether of not pytest is active. That way the
module looks the same as before from the outside.
In the case of numpy itself, direct accesses have been fixed. Having
proper `__all__` lists in the submodules helped in that.
Diffstat (limited to 'numpy/polynomial')
-rw-r--r-- | numpy/polynomial/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/polynomial/__init__.py b/numpy/polynomial/__init__.py index 82c350e9b..ae5b1f078 100644 --- a/numpy/polynomial/__init__.py +++ b/numpy/polynomial/__init__.py @@ -22,6 +22,6 @@ from .hermite import Hermite from .hermite_e import HermiteE from .laguerre import Laguerre -from numpy.testing.nosetester import _numpy_tester +from numpy.testing import _numpy_tester test = _numpy_tester().test bench = _numpy_tester().bench |