We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8c7f9 commit ce1a27dCopy full SHA for ce1a27d
Lib/test/test_inspect/test_inspect.py
@@ -2810,12 +2810,12 @@ def gen():
2810
yield 2
2811
2812
@types.coroutine
2813
- def legacy_coro():
+ def wrapped_generator_coro():
2814
# return a generator iterator so types.coroutine
2815
# wraps it into types._GeneratorWrapper.
2816
return gen()
2817
2818
- g = legacy_coro()
+ g = wrapped_generator_coro()
2819
self.addCleanup(g.close)
2820
self.assertIs(type(g), types._GeneratorWrapper)
2821
0 commit comments