mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)
This commit is contained in:
parent
ce4d11f98b
commit
b415c5f1aa
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue