]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix brownbag in issue 17911 commit
authorRobert Collins <rbtcollins@hp.com>
Wed, 4 Mar 2015 23:26:00 +0000 (12:26 +1300)
committerRobert Collins <rbtcollins@hp.com>
Wed, 4 Mar 2015 23:26:00 +0000 (12:26 +1300)
Lib/test/test_traceback.py

index 9ff75483422ba41ef57d4e784718d52ce8edbba5..3c3227365f7b9a2bca55fa14dd808b5f1c1b78d9 100644 (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__)