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

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Jan 15 01:53:33 EST 2007


Author: timl
Date: 2007-01-15 00:53:06 -0600 (Mon, 15 Jan 2007)
New Revision: 3511

Modified:
   trunk/numpy/testing/numpytest.py
Log:
deprecate the use of ScipyTest and ScipyTestCase. fixes #421

Modified: trunk/numpy/testing/numpytest.py
===================================================================
--- trunk/numpy/testing/numpytest.py	2007-01-10 06:14:26 UTC (rev 3510)
+++ trunk/numpy/testing/numpytest.py	2007-01-15 06:53:06 UTC (rev 3511)
@@ -192,8 +192,13 @@
                 runner.run(test)
         return
 
-ScipyTestCase = NumpyTestCase
+class ScipyTestCase(NumpyTestCase):
+    def __init__(self, package=None):
+        warnings.warn("ScipyTestCase is now called NumpyTestCase; please update your code",
+                         DeprecationWarning)
+        NumpyTestCase.__init__(self, package)
 
+
 def _get_all_method_names(cls):
     names = dir(cls)
     if sys.version[:3]<='2.1':
@@ -624,8 +629,13 @@
         print>>sys.stdout, message
         sys.stdout.flush()
 
-ScipyTest = NumpyTest
+class ScipyTest(NumpyTest):
+    def __init__(self, package=None):
+        warnings.warn("ScipyTest is now called NumpyTest; please update your code",
+                         DeprecationWarning)
+        NumpyTest.__init__(self, package)
 
+
 def importall(package):
     """
     Try recursively to import all subpackages under package.




More information about the Numpy-svn mailing list