From: Alec Warner Date: Sat, 17 Mar 2007 07:11:40 +0000 (-0000) Subject: fix for older python who have oddly named __exc_info() X-Git-Tag: v2.2_pre1~1573 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb724721a762121fe73f21d78b9329dc2cc99e65;p=portage.git fix for older python who have oddly named __exc_info() svn path=/main/trunk/; revision=6227 --- 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()