mirror of
https://github.com/python/cpython
synced 2024-09-16 03:20:00 +00:00
GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)
This commit is contained in:
parent
ce4d11f98b
commit
b415c5f1aa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue