GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)

This commit is contained in:
Kumar Aditya 2022-06-15 20:11:47 +05:30 committed by GitHub
parent ce4d11f98b
commit b415c5f1aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,9 @@ class BaseTest(unittest.TestCase):
def new_loop(self):
loop = asyncio.BaseEventLoop()
loop._process_events = mock.Mock()
# Mock waking event loop from select
loop._write_to_self = mock.Mock()
loop._write_to_self.return_value = None
loop._selector = mock.Mock()
loop._selector.select.return_value = ()
loop.shutdown_ag_run = False