summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/common.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/testsuite/common.py b/testsuite/common.py
index 159b664..10f83cc 100644
--- a/testsuite/common.py
+++ b/testsuite/common.py
@@ -149,15 +149,25 @@ class TestCase(unittest.TestCase):
"""
Override me by chaining up to me at the start of your setUp.
"""
- gst.debug('%s.%s' % (self.__class__.__name__,
- self.__testMethodName))
+ # Using private variables is BAD ! this variable changed name in
+ # python 2.5
+ try:
+ methodName = self.__testMethodName
+ except:
+ methodName = self._testMethodName
+ gst.debug('%s.%s' % (self.__class__.__name__, methodName))
self.gctrack()
def tearDown(self):
"""
Override me by chaining up to me at the end of your tearDown.
"""
- gst.debug('%s.%s' % (self.__class__.__name__,
- self.__testMethodName))
+ # Using private variables is BAD ! this variable changed name in
+ # python 2.5
+ try:
+ methodName = self.__testMethodName
+ except:
+ methodName = self._testMethodName
+ gst.debug('%s.%s' % (self.__class__.__name__, methodName))
self.gccollect()
self.gcverify()