summaryrefslogtreecommitdiff
path: root/numpy/polynomial/hermite_e.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/polynomial/hermite_e.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/polynomial/hermite_e.py')
-rw-r--r--numpy/polynomial/hermite_e.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/polynomial/hermite_e.py b/numpy/polynomial/hermite_e.py
index 8fdcbf666..a846b167c 100644
--- a/numpy/polynomial/hermite_e.py
+++ b/numpy/polynomial/hermite_e.py
@@ -1555,7 +1555,7 @@ def hermefit(x, y, deg, rcond=None, full=False, w=None):
# warn on rank reduction
if rank != order and not full:
msg = "The fit may be poorly conditioned"
- warnings.warn(msg, pu.RankWarning)
+ warnings.warn(msg, pu.RankWarning, stacklevel=2)
if full:
return c, [resids, rank, s, rcond]