commit | 589c2d39c70b5695ed3447769939cc4e6cc660a8 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Nov 13 22:09:10 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Nov 13 22:09:10 2009 +0000 |
tree | d1f176adad78ceaeec0fbc46a2f6d917c9c0d73c | |
parent | 060cee221b7d24479da93d925607defb2b6e3dd9 [diff] |
use with_traceback correctly
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index ed17b6e..4f9c496 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py
@@ -117,8 +117,7 @@ # let unexpected exceptions pass through return False #store exception, without traceback, for later retrieval - self.exc_value = exc_value - self.exc_value.with_traceback(None) + self.exc_value = exc_value.with_traceback(None) if self.expected_regex is None: return True