Skip to content

Commit b415c5f

Browse files
GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)
1 parent ce4d11f commit b415c5f

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
@@ -44,6 +44,9 @@ class BaseTest(unittest.TestCase):
4444
def new_loop(self):
4545
loop = asyncio.BaseEventLoop()
4646
loop._process_events = mock.Mock()
47+
# Mock waking event loop from select
48+
loop._write_to_self = mock.Mock()
49+
loop._write_to_self.return_value = None
4750
loop._selector = mock.Mock()
4851
loop._selector.select.return_value = ()
4952
loop.shutdown_ag_run = False

0 commit comments

Comments
 (0)