diff --git a/Lib/test/test_asyncio/test_runners.py b/Lib/test/test_asyncio/test_runners.py index 2919412ab81..c0bd1a242c8 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():