mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
testsuite/common.py: A private variable of unittest.TestCase changed name in python 2.5.
Original commit message from CVS: * testsuite/common.py: A private variable of unittest.TestCase changed name in python 2.5. This fixes make check with python2.5
This commit is contained in:
parent
1856ed8de0
commit
9a4fa9567c
2 changed files with 20 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-02-04 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* testsuite/common.py:
|
||||
A private variable of unittest.TestCase changed name in python 2.5.
|
||||
This fixes make check with python2.5
|
||||
|
||||
2007-02-04 Rene Stadler <mail@renestadler.de>
|
||||
|
||||
reviewed by: Edward Hervey <edward@fluendo.com>
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue