summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-05-15 12:33:27 +0000
committercookedm <cookedm@localhost>2007-05-15 12:33:27 +0000
commit3f08181da74e0cfee070065cd56aee04e8927abf (patch)
treec8811d9d2ae196b1c1fd000d408328fb364d679c /numpy/testing/numpytest.py
parenta10da324f8a5d4d7e68fdfcb6a63c420f3c4b99d (diff)
downloadnumpy-3f08181da74e0cfee070065cd56aee04e8927abf.tar.gz
Add stacklevel=2 to DeprecationWarning for ScipyTestCase
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r--numpy/testing/numpytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py
index 4a69e05e3..e8bbac440 100644
--- a/numpy/testing/numpytest.py
+++ b/numpy/testing/numpytest.py
@@ -195,7 +195,7 @@ class NumpyTestCase (unittest.TestCase):
class ScipyTestCase(NumpyTestCase):
def __init__(self, package=None):
warnings.warn("ScipyTestCase is now called NumpyTestCase; please update your code",
- DeprecationWarning)
+ DeprecationWarning, stacklevel=2)
NumpyTestCase.__init__(self, package)