diff options
author | Alec Warner <antarus@gentoo.org> | 2007-03-17 07:11:40 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-03-17 07:11:40 +0000 |
commit | bb724721a762121fe73f21d78b9329dc2cc99e65 (patch) | |
tree | 4777f1a613119bc2eeb9f10b4a978ca03bd7bc0a | |
parent | 3d223adeadf30f57233fe3d5657a36a8d1fb432d (diff) | |
download | portage-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__.py | 3 |
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() |