Skip to content

Commit

Permalink
pythonGH-93850: Fix test_asyncio exception ignored tracebacks
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 committed Jun 15, 2022
1 parent d318346 commit 4a2ab56
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 @@ -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
Expand Down

0 comments on commit 4a2ab56

Please sign in to comment.