Fix brownbag in issue 17911 commit

This commit is contained in:
Robert Collins 2015-03-05 12:26:00 +13:00
parent 6bc2c1e7eb
commit 07ff16733e
1 changed files with 2 additions and 3 deletions

View File

@ -591,10 +591,9 @@ class TestTracebackException(unittest.TestCase):
except Exception as e:
exc_info = sys.exc_info()
self.expected_stack = traceback.StackSummary.extract(
traceback.walk_tb(exc_info[2]), limit=1, lookup_lines=False,
capture_locals=True)
traceback.walk_tb(exc_info[2]), limit=1, lookup_lines=False)
self.exc = traceback.TracebackException.from_exception(
e, limit=1, lookup_lines=False, capture_locals=True)
e, limit=1, lookup_lines=False)
expected_stack = self.expected_stack
exc = self.exc
self.assertEqual(None, exc.__cause__)