8000 GH-93850: Fix test_asyncio exception ignored tracebacks · kumaraditya303/cpython@4a2ab56 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 4a2ab56

Browse files
pythonGH-93850: Fix test_asyncio exception ignored tracebacks
1 parent d318346 commit 4a2ab56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_asyncio/test_runners.py

Lines changed: 3 additions & 0 deletions
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)
0