summaryrefslogtreecommitdiff
path: root/numpy/_import_tools.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-09-02 10:06:54 -0500
committerGitHub <noreply@github.com>2016-09-02 10:06:54 -0500
commit3dbbfd8db5c21c603620bebc98e03bc84334f11c (patch)
treee29eb26cfbf72ee9b03aa15dd02671bf17e70301 /numpy/_import_tools.py
parent9164f23c19c049e28d4d4825a53bbb01aedabcfc (diff)
parent68ea0c792db6bac435752e45d8681f7f1283453d (diff)
downloadnumpy-3dbbfd8db5c21c603620bebc98e03bc84334f11c.tar.gz
Merge pull request #7148 from seberg/stacklevel+tests
ENH,TST: Bump stacklevel and add tests for warnings
Diffstat (limited to 'numpy/_import_tools.py')
-rw-r--r--numpy/_import_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py
index eda0284fe..18ac78d29 100644
--- a/numpy/_import_tools.py
+++ b/numpy/_import_tools.py
@@ -166,7 +166,7 @@ class PackageLoader(object):
# 2014-10-29, 1.10
warnings.warn('pkgload and PackageLoader are obsolete '
'and will be removed in a future version of numpy',
- DeprecationWarning)
+ DeprecationWarning, stacklevel=2)
frame = self.parent_frame
self.info_modules = {}
if options.get('force', False):