From bb724721a762121fe73f21d78b9329dc2cc99e65 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sat, 17 Mar 2007 07:11:40 +0000 Subject: [PATCH] fix for older python who have oddly named __exc_info() svn path=/main/trunk/; revision=6227 --- pym/portage/tests/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.26.2