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

numpy-svn@scip... numpy-svn@scip...
Mon Aug 25 08:35:30 CDT 2008


Author: alan.mcintyre
Date: 2008-08-25 08:35:27 -0500 (Mon, 25 Aug 2008)
New Revision: 5695

Modified:
   trunk/numpy/testing/parametric.py
Log:
Added deprecation warning for numpy.testing.ParametricTestCase


Modified: trunk/numpy/testing/parametric.py
===================================================================
--- trunk/numpy/testing/parametric.py	2008-08-24 23:22:11 UTC (rev 5694)
+++ trunk/numpy/testing/parametric.py	2008-08-25 13:35:27 UTC (rev 5695)
@@ -40,6 +40,7 @@
 __docformat__ = "restructuredtext en"
 
 import unittest
+import warnings
 
 class _ParametricTestCase(unittest.TestCase):
     """TestCase subclass with support for parametric tests.
@@ -59,6 +60,11 @@
     #: to mutate the state you are using, which will alter later tests).
     _shareParTestPrefix = 'testsp'
 
+    def __init__(self, methodName = 'runTest'):
+    	warnings.warn("ParametricTestCase will be removed in the next NumPy "
+                      "release", DeprecationWarning)
+	unittest.TestCase.__init__(self, methodName)
+
     def exec_test(self,test,args,result):
         """Execute a single test.  Returns a success boolean"""
 



More information about the Numpy-svn mailing list