summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-25 14:54:34 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-25 14:54:34 -0700
commit3735e3e1805769fcaae2ef450907db7508355ec9 (patch)
tree4f8b3f5802766138aea773bb7cd78e7d76a86bfd
parent5a24743e55acedcbae06b97401c6e39b0d5faa98 (diff)
downloadportage-3735e3e1805769fcaae2ef450907db7508355ec9.tar.gz
portage-3735e3e1805769fcaae2ef450907db7508355ec9.tar.bz2
portage-3735e3e1805769fcaae2ef450907db7508355ec9.zip
TestCase: remove python 2.4 compat constructor
-rw-r--r--pym/portage/tests/__init__.py14
1 files changed, 5 insertions, 9 deletions
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()