summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-06-15 14:41:47 (GMT)
committerGitHub <noreply@github.com>2022-06-15 14:41:47 (GMT)
commitb415c5f1aa29259d5d18a5d85b9365430614383a (patch)
tree739bfe8240969c10320e98e4e060cf72e59f097d
parentce4d11f98b30ec62f56a0653a212f0f78ca08b59 (diff)
downloadcpython-b415c5f1aa29259d5d18a5d85b9365430614383a.zip
cpython-b415c5f1aa29259d5d18a5d85b9365430614383a.tar.gz
cpython-b415c5f1aa29259d5d18a5d85b9365430614383a.tar.bz2
GH-93850: Fix test_asyncio exception ignored tracebacks (#93854)
-rw-r--r--Lib/test/test_asyncio/test_runners.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_runners.py b/Lib/test/test_asyncio/test_runners.py
index 94d449f..7780a5f 100644
--- a/Lib/test/test_asyncio/test_runners.py
+++ b/Lib/test/test_asyncio/test_runners.py
@@ -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