Skip to content

Commit

Permalink
GH-93850: Fix test_asyncio exception ignored tracebacks (GH-93854)
Browse files Browse the repository at this point in the history
(cherry picked from commit b415c5f)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
  • Loading branch information
miss-islington and kumaraditya303 committed Jun 15, 2022
1 parent 40c257d commit d1fd739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_asyncio/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1fd739

Please sign in to comment.