Skip to content

Commit d1fd739

Browse files
GH-93850: Fix test_asyncio exception ignored tracebacks (GH-93854)
(cherry picked from commit b415c5f) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
1 parent 40c257d commit d1fd739

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_asyncio/test_runners.py

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class BaseTest(unittest.TestCase):
4545
def new_loop(self):
4646
loop = asyncio.BaseEventLoop()
4747
loop._process_events = mock.Mock()
48+
# Mock waking event loop from select
49+
loop._write_to_self = mock.Mock()
50+
loop._write_to_self.return_value = None
4851
loop._selector = mock.Mock()
4952
loop._selector.select.return_value = ()
5053
loop.shutdown_ag_run = False

0 commit comments

Comments
 (0)