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 ac547e6 commit ab422f7Copy full SHA for ab422f7
Lib/test/test_inspect.py
@@ -210,6 +210,12 @@ async def _fn3():
210
211
def fn3():
212
return _fn3()
213
+
214
+ # TODO: Move this to decorator function.
215
+ fn3.__code__ = fn3.__code__.replace(
216
+ co_flags=fn3.__code__.co_flags | inspect.CO_COROUTINE
217
+ )
218
219
self.assertTrue(inspect.iscoroutinefunction(fn3))
220
221
with self.subTest("Awaitable instance not recongnised."):
0 commit comments