summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-03-17 07:11:40 +0000
committerAlec Warner <antarus@gentoo.org>2007-03-17 07:11:40 +0000
commitbb724721a762121fe73f21d78b9329dc2cc99e65 (patch)
tree4777f1a613119bc2eeb9f10b4a978ca03bd7bc0a
parent3d223adeadf30f57233fe3d5657a36a8d1fb432d (diff)
downloadportage-bb724721a762121fe73f21d78b9329dc2cc99e65.tar.gz
portage-bb724721a762121fe73f21d78b9329dc2cc99e65.tar.bz2
portage-bb724721a762121fe73f21d78b9329dc2cc99e65.zip
fix for older python who have oddly named __exc_info()
svn path=/main/trunk/; revision=6227
-rw-r--r--pym/portage/tests/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/tests/__init__.py b/pym/portage/tests/__init__.py
index bef41ef03..3eaec03ec 100644
--- a/pym/portage/tests/__init__.py
+++ b/pym/portage/tests/__init__.py
@@ -85,6 +85,9 @@ class TestCase(unittest.TestCase):
self._testMethodName = methodName
unittest.TestCase.__init__(self, methodName)
self.todo = False
+ # compat hack for older pythons
+ if not self._exc_info and self.__exc_info
+ self._exc_info = self.__exc_info
def defaultTestResult(self):
return TextTestResult()