diff options
Diffstat (limited to 'numpy/testing/decorators.py')
-rw-r--r-- | numpy/testing/decorators.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/testing/decorators.py b/numpy/testing/decorators.py index 1988afd29..68c1554b5 100644 --- a/numpy/testing/decorators.py +++ b/numpy/testing/decorators.py @@ -3,9 +3,13 @@ Back compatibility decorators module. It will import the appropriate set of tools """ +from __future__ import division, absolute_import, print_function + import warnings -warnings.warn("Import from numpy.testing, not numpy.testing.decorators", - ImportWarning) +# 2018-04-04, numpy 1.15.0 +warnings.warn("Importing from numpy.testing.decorators is deprecated, " + "import from numpy.testing instead.", + DeprecationWarning, stacklevel=2) from ._private.decorators import * |