diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-15 15:10:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 15:10:40 (GMT) |
commit | d1fd7393a293e7043548973dbc055be55cf9d51e (patch) | |
tree | 02b7f3791060198e38f0f95f40b3b5d5fedb8dd7 | |
parent | 40c257d64f3cf28396d56a381c5e807e3b584cc6 (diff) | |
download | cpython-d1fd7393a293e7043548973dbc055be55cf9d51e.zip cpython-d1fd7393a293e7043548973dbc055be55cf9d51e.tar.gz cpython-d1fd7393a293e7043548973dbc055be55cf9d51e.tar.bz2 |
GH-93850: Fix test_asyncio exception ignored tracebacks (GH-93854)
(cherry picked from commit b415c5f1aa29259d5d18a5d85b9365430614383a)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
-rw-r--r-- | Lib/test/test_asyncio/test_runners.py | 3 |
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 0c20921..3e288d1 100644 --- a/Lib/test/test_asyncio/test_runners.py +++ b/Lib/test/test_asyncio/test_runners.py @@ -45,6 +45,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 |