Commit 07ff1673 authored by Robert Collins's avatar Robert Collins

Fix brownbag in issue 17911 commit

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