summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-03-27 09:41:03 -0600
committerCharles Harris <charlesr.harris@gmail.com>2018-03-29 11:41:35 -0600
commit2589616ca6a9b6270c9621af038d90972154914b (patch)
treeaa9356e346b85396821a616b134a2dff390b30a5 /numpy/testing/utils.py
parent157aedaa50d3c5fc74b45c79fb8b8c4b650217ac (diff)
downloadnumpy-2589616ca6a9b6270c9621af038d90972154914b.tar.gz
MAINT: Warn when importing numpy.testing.<module>.
Downstream projects were importing directly from the testing modules rather than from testing. Discourage this.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r--numpy/testing/utils.py5
1 files changed, 4 insertions, 1 deletions
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 *