summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-08-25 13:35:27 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-08-25 13:35:27 +0000
commiteb70884c2653a463ff00e331c8b90618f97b0eb0 (patch)
tree3488cac105c60d2c25dc0c656860bf898bdb0aa1 /numpy
parent6f33684d500a6be10c47ca201cfe404a863f4abe (diff)
downloadnumpy-eb70884c2653a463ff00e331c8b90618f97b0eb0.tar.gz
Added deprecation warning for numpy.testing.ParametricTestCase
Diffstat (limited to 'numpy')
-rw-r--r--numpy/testing/parametric.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/testing/parametric.py b/numpy/testing/parametric.py
index 7ff68f260..e6f2b3390 100644
--- a/numpy/testing/parametric.py
+++ b/numpy/testing/parametric.py
@@ -40,6 +40,7 @@ unittest itself changes in the future. I have only tested this with Python
__docformat__ = "restructuredtext en"
import unittest
+import warnings
class _ParametricTestCase(unittest.TestCase):
"""TestCase subclass with support for parametric tests.
@@ -59,6 +60,11 @@ class _ParametricTestCase(unittest.TestCase):
#: 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"""