summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2018-03-30 10:22:22 -0700
committerGitHub <noreply@github.com>2018-03-30 10:22:22 -0700
commit7fd2a3931021fecd00a8c3d98230c2f2bf78bb46 (patch)
tree1770d53d787f72b3ed68191f2e82216e3d988e93 /numpy
parent77b6a10f942aab5e7670d71cab7c71c368665e47 (diff)
parentba5625161b36cd891c883bf4bc5a99590bcb2a9a (diff)
downloadnumpy-7fd2a3931021fecd00a8c3d98230c2f2bf78bb46.tar.gz
Merge pull request #10830 from charris/fix-testing-warnings
BUG: Fix obvious warning bugs.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/testing/noseclasses.py4
-rw-r--r--numpy/testing/nosetester.py4
-rw-r--r--numpy/testing/utils.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/numpy/testing/noseclasses.py b/numpy/testing/noseclasses.py
index 9431fc6f1..dde62e825 100644
--- a/numpy/testing/noseclasses.py
+++ b/numpy/testing/noseclasses.py
@@ -4,8 +4,8 @@ set of tools
"""
import warnings
-warnings.warn(ImportWarning,
- "Import from numpy.testing, not numpy.testing.noseclasses")
+warnings.warn("Import from numpy.testing, not numpy.testing.noseclasses",
+ ImportWarning)
from ._private.noseclasses import *
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index 74d159946..772bff305 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -5,8 +5,8 @@ set of tools
"""
import warnings
-warnings.warn(ImportWarning,
- "Import from numpy.testing, not numpy.testing.nosetester")
+warnings.warn("Import from numpy.testing, not numpy.testing.nosetester",
+ ImportWarning)
from ._private.nosetester import *
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index 299c68c6a..3cd89e639 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -5,8 +5,8 @@ set of tools
"""
import warnings
-warnings.warn(ImportWarning,
- "Import from numpy.testing, not numpy.testing.utils")
+warnings.warn("Import from numpy.testing, not numpy.testing.utils",
+ ImportWarning)
from ._private.utils import *