summaryrefslogtreecommitdiff
path: root/numpy/testing/noseclasses.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/noseclasses.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/noseclasses.py')
-rw-r--r--numpy/testing/noseclasses.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/testing/noseclasses.py b/numpy/testing/noseclasses.py
index 7c0a5b7f6..9431fc6f1 100644
--- a/numpy/testing/noseclasses.py
+++ b/numpy/testing/noseclasses.py
@@ -2,4 +2,10 @@
Back compatibility noseclasses module. It will import the appropriate
set of tools
"""
+import warnings
+
+warnings.warn(ImportWarning,
+ "Import from numpy.testing, not numpy.testing.noseclasses")
+
from ._private.noseclasses import *
+