From ba5625161b36cd891c883bf4bc5a99590bcb2a9a Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Fri, 30 Mar 2018 02:49:53 -0600 Subject: BUG: Fix obvious warning bugs. The warning type is the second, not the first, argument. --- numpy/testing/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/testing/utils.py') 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 * -- cgit v1.2.1