From cf73c76d3078b30b521f8abd19ae7996987784f7 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 4 Apr 2018 12:31:56 -0600 Subject: 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. --- numpy/core/umath_tests.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 numpy/core/umath_tests.py (limited to 'numpy/core/umath_tests.py') 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 * -- cgit v1.2.1