mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
GH-93850: Fix test_asyncio exception ignored tracebacks (GH-93854)
(cherry picked from commit b415c5f1aa
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
40c257d64f
commit
d1fd7393a2
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,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