From 2589616ca6a9b6270c9621af038d90972154914b Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 27 Mar 2018 09:41:03 -0600 Subject: MAINT: Warn when importing numpy.testing.. Downstream projects were importing directly from the testing modules rather than from testing. Discourage this. --- numpy/testing/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/testing/utils.py') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 914fc6806..299c68c6a 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -3,7 +3,10 @@ Back compatibility utils module. It will import the appropriate set of tools """ -import os +import warnings + +warnings.warn(ImportWarning, + "Import from numpy.testing, not numpy.testing.utils") from ._private.utils import * -- cgit v1.2.1