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

Method test_coroutine_function__async_def

tests/test_objects.py:109–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107
108 @skipUnless(IS_PY35, "requires Python 3.5+")
109 def test_coroutine_function__async_def(self):
110 # This whole test uses the asynchronous coroutine definition syntax
111 # which is invalid on Python <3.5 so it has to be executed from string.
112 try:
113 exec(python_code("""
114 async def coro_func():
115 pass
116 self.assert_no_match(coro_func)
117 """))
118 except SyntaxError:
119 pass
120
121 test_repr = lambda self: self.assert_repr(__unit__.Coroutine())
122

Callers

nothing calls this directly

Calls 1

python_codeFunction · 0.90

Tested by

no test coverage detected