MCPcopy Create free account
hub / github.com/Xion/callee / test_coroutine_function__async_def

Method test_coroutine_function__async_def

tests/test_functions.py:205–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

203
204 @skipUnless(IS_PY35, "requires Python 3.5+")
205 def test_coroutine_function__async_def(self):
206 # This whole test uses the asynchronous coroutine definition syntax
207 # which is invalid on Python <3.5 so it has to be executed from string.
208 try:
209 exec(python_code("""
210 async def coro_func():
211 pass
212 self.assert_match(coro_func)
213 """))
214 except SyntaxError:
215 pass
216
217 test_repr = lambda self: self.assert_repr(__unit__.CoroutineFunction())
218

Callers

nothing calls this directly

Calls 1

python_codeFunction · 0.90

Tested by

no test coverage detected