mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
gh-92118: Add test for traceback when exception is modified by (Async)ExitStack.__exit__ (GH-92339)
This commit is contained in:
parent
ae553b3561
commit
e65e587f93
2 changed files with 43 additions and 0 deletions
|
@ -487,6 +487,13 @@ class TestAsyncExitStack(TestBaseExitStack, unittest.TestCase):
|
|||
return self.run_coroutine(self.__aexit__(*exc_details))
|
||||
|
||||
exit_stack = SyncAsyncExitStack
|
||||
callback_error_internal_frames = [
|
||||
('__exit__', 'return self.run_coroutine(self.__aexit__(*exc_details))'),
|
||||
('run_coroutine', 'raise exc'),
|
||||
('run_coroutine', 'raise exc'),
|
||||
('__aexit__', 'raise exc_details[1]'),
|
||||
('__aexit__', 'cb_suppress = cb(*exc_details)'),
|
||||
]
|
||||
|
||||
def setUp(self):
|
||||
self.loop = asyncio.new_event_loop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue