From 3735e3e1805769fcaae2ef450907db7508355ec9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Aug 2011 14:54:34 -0700 Subject: TestCase: remove python 2.4 compat constructor --- pym/portage/tests/__init__.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'pym/portage/tests/__init__.py') diff --git a/pym/portage/tests/__init__.py b/pym/portage/tests/__init__.py index a647aa298..dddf3861f 100644 --- a/pym/portage/tests/__init__.py +++ b/pym/portage/tests/__init__.py @@ -1,5 +1,5 @@ # tests/__init__.py -- Portage Unit Test functionality -# Copyright 2006-2010 Gentoo Foundation +# Copyright 2006-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import sys @@ -131,15 +131,11 @@ class TestCase(unittest.TestCase): and then fix the code later. This may not be a great approach (broken code!!??!11oneone) but it does happen at times. """ - - def __init__(self, methodName='runTest'): - # This method exists because unittest.py in python 2.4 stores - # the methodName as __testMethodName while 2.5 uses - # _testMethodName. - self._testMethodName = methodName - unittest.TestCase.__init__(self, methodName) + + def __init__(self, *pargs, **kwargs): + unittest.TestCase.__init__(self, *pargs, **kwargs) self.todo = False - + def defaultTestResult(self): return TextTestResult() -- cgit v1.2.3-1-g7c22