https://github.com/python/cpython/commit/20e6e5636a06fe5e1472062918d0a302d82a71c3 commit: 20e6e5636a06fe5e1472062918d0a302d82a71c3 branch: main author: Andrew Svetlov <andrew.svetlov at gmail.com> committer: asvetlov <andrew.svetlov at gmail.com> date: 2022年03月25日T19:59:29+02:00 summary: bpo-47118: Fix asyncio.Runner tests error (32117) files: M Lib/test/test_asyncio/test_runners.py diff --git a/Lib/test/test_asyncio/test_runners.py b/Lib/test/test_asyncio/test_runners.py index 2919412ab81db..c0bd1a242c86c 100644 --- a/Lib/test/test_asyncio/test_runners.py +++ b/Lib/test/test_asyncio/test_runners.py @@ -296,7 +296,7 @@ async def get_context(): self.assertEqual(-1, runner.run(f(1))) self.assertEqual(1, runner.run(f(2))) - self.assertEqual({cvar: 2}, dict(runner.run(get_context()))) + self.assertEqual(2, runner.run(get_context()).get(cvar)) def test_recursine_run(self): async def g():