From 2ae73db643380cbf639841adc22418906da40085 Mon Sep 17 00:00:00 2001 From: cookedm Date: Thu, 10 May 2007 17:24:44 +0000 Subject: Better warning when using ScipyTest --- 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 e2735d2fa..4a69e05e3 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -627,7 +627,7 @@ class NumpyTest: class ScipyTest(NumpyTest): def __init__(self, package=None): warnings.warn("ScipyTest is now called NumpyTest; please update your code", - DeprecationWarning) + DeprecationWarning, stacklevel=2) NumpyTest.__init__(self, package) -- cgit v1.2.1