[Numpy-svn] r3766 - trunk/numpy/testing

numpy-svn at scipy.org numpy-svn at scipy.org
Tue May 15 08:33:29 EDT 2007


Author: cookedm
Date: 2007-05-15 07:33:27 -0500 (Tue, 15 May 2007)
New Revision: 3766

Modified:
   trunk/numpy/testing/numpytest.py
Log:
Add stacklevel=2 to DeprecationWarning for ScipyTestCase


Modified: trunk/numpy/testing/numpytest.py
===================================================================
--- trunk/numpy/testing/numpytest.py	2007-05-15 11:19:28 UTC (rev 3765)
+++ trunk/numpy/testing/numpytest.py	2007-05-15 12:33:27 UTC (rev 3766)
@@ -195,7 +195,7 @@
 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)
 
 




More information about the Numpy-svn mailing list