Skip to content

Commit

Permalink
pythonGH-93850: Fix test_asyncio exception ignored tracebacks (python…
Browse files Browse the repository at this point in the history
…GH-93854)

(cherry picked from commit b415c5f)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
  • Loading branch information
kumaraditya303 authored and miss-islington committed Jun 15, 2022
1 parent 40c257d commit 0f4a518
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 0f4a518

Please sign in to comment.