Commit 589c2d39 authored by Benjamin Peterson's avatar Benjamin Peterson

use with_traceback correctly

parent 060cee22
......@@ -117,8 +117,7 @@ class _AssertRaisesContext(object):
# 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment