summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/testing/parametric.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/testing/parametric.py b/numpy/testing/parametric.py
index 8ed3ea4b5..94f7accf8 100644
--- a/numpy/testing/parametric.py
+++ b/numpy/testing/parametric.py
@@ -161,8 +161,12 @@ class ParametricTestCase(unittest.TestCase):
if result is None: result = self.defaultTestResult()
+ try:
+ _testMethodName = getattr(self,"_testMethodName")
+ except:
+ _testMethodName = getattr(self,"_TestCase__testMethodName")
+
# Independent tests: each gets its own setup/teardown
- _testMethodName = getattr(self,"_testMethodName", "runTest")
if _testMethodName.startswith(self._indepParTestPrefix):
for t in getattr(self,_testMethodName)():
self.run_test(t,result)