From: Andrew Svetlov Date: Fri, 25 Mar 2022 17:59:29 +0000 (+0200) Subject: bpo-47118: Fix asyncio.Runner tests error (32117) X-Git-Tag: v3.11.0a7~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20e6e5636a06fe5e1472062918d0a302d82a71c3;p=thirdparty%2FPython%2Fcpython.git bpo-47118: Fix asyncio.Runner tests error (32117) --- diff --git a/Lib/test/test_asyncio/test_runners.py b/Lib/test/test_asyncio/test_runners.py index 2919412ab81d..c0bd1a242c86 100644 --- a/Lib/test/test_asyncio/test_runners.py +++ b/Lib/test/test_asyncio/test_runners.py @@ -296,7 +296,7 @@ class RunnerTests(BaseTest): 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():