diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-04 12:31:56 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2018-04-06 20:47:00 -0600 |
commit | cf73c76d3078b30b521f8abd19ae7996987784f7 (patch) | |
tree | e2a891e0900724c16112182d6e859303add33d97 /numpy/core/umath_tests.py | |
parent | 036151143bff1eebeded5582534e676a192352cd (diff) | |
download | numpy-cf73c76d3078b30b521f8abd19ae7996987784f7.tar.gz |
DEP: Issue deprecation warnings for some imports.
The following modules have been moved or renamed and should not be
imported. This adds shim modules for the old names that issue a
DeprecationWarning on import.
* numpy/core/umath_tests.py
* numpy/testing/decorators.py
* numpy/testing/noseclasses.py
* numpy/testing/nosetester.py
* numpy/testing/utils.py
Closes #10845.
Diffstat (limited to 'numpy/core/umath_tests.py')
-rw-r--r-- | numpy/core/umath_tests.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/numpy/core/umath_tests.py b/numpy/core/umath_tests.py new file mode 100644 index 000000000..28e325b98 --- /dev/null +++ b/numpy/core/umath_tests.py @@ -0,0 +1,15 @@ +""" +Shim for _umath_tests to allow a deprecation period for the new name. + +""" +from __future__ import division, absolute_import, print_function + +import warnings + +# 2018-04-04, numpy 1.15.0 +warnings.warn(("numpy.core.umath_tests is an internal NumPy " + "module and should not be imported. It will " + "be removed in a future NumPy release."), + category=DeprecationWarning, stacklevel=2) + +from ._umath_tests import * |