summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-09-20 14:55:05 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-09-20 14:55:05 +0200
commite5c13b05080459f7fb3c25d9c2ccbdd00f188df6 (patch)
treeee73617e6ae7a591bd0c2bd276d3a532ef49b7fd /testlib.py
parentcc9b8ba30bb4cda175710e6eb3a80ddbb3fcdacd (diff)
downloadlogilab-common-e5c13b05080459f7fb3c25d9c2ccbdd00f188df6.tar.gz
'[testlib/py3k]: replace self._exc_info by equivalent sys.exc_info
Since python2.5, _exc_info is doing nothing else than returning sys.exc_info _exc_info is not available in 2.7 and 3.x.
Diffstat (limited to 'testlib.py')
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index df5a3f8..606e3f5 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1025,7 +1025,7 @@ class TestCase(unittest.TestCase):
super(TestCase, self).__init__(methodName)
# internal API changed in python2.5
if sys.version_info >= (2, 5):
- self.__exc_info = self._exc_info
+ self.__exc_info = sys.exc_info
self.__testMethodName = self._testMethodName
else:
# let's give easier access to _testMethodName to every subclasses