From 3f08181da74e0cfee070065cd56aee04e8927abf Mon Sep 17 00:00:00 2001 From: cookedm Date: Tue, 15 May 2007 12:33:27 +0000 Subject: Add stacklevel=2 to DeprecationWarning for ScipyTestCase --- numpy/testing/numpytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing/numpytest.py') 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) -- cgit v1.2.1