diff options
author | cookedm <cookedm@localhost> | 2007-05-15 12:33:27 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-05-15 12:33:27 +0000 |
commit | 3f08181da74e0cfee070065cd56aee04e8927abf (patch) | |
tree | c8811d9d2ae196b1c1fd000d408328fb364d679c /numpy/testing/numpytest.py | |
parent | a10da324f8a5d4d7e68fdfcb6a63c420f3c4b99d (diff) | |
download | numpy-3f08181da74e0cfee070065cd56aee04e8927abf.tar.gz |
Add stacklevel=2 to DeprecationWarning for ScipyTestCase
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r-- | numpy/testing/numpytest.py | 2 |
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) |