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

Method test_coroutine__async_def

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

Source from the content-addressed store, hash-verified

181
182 @skipUnless(IS_PY35, "requires Python 3.5+")
183 def test_coroutine__async_def(self):
184 # This whole test uses the asynchronous coroutine definition syntax
185 # which is invalid on Python <3.5 so it has to be executed from string.
186 try:
187 exec(python_code("""
188 async def coro_func():
189 pass
190 coro = coro_func()
191 self.await_(coro) # to prevent a warning
192 self.assert_no_match(coro)
193 """))
194 except SyntaxError:
195 pass
196
197 @skipUnless(IS_PY34, "requires Python 3.4+")
198 def test_coroutine_function__decorator(self):

Callers

nothing calls this directly

Calls 1

python_codeFunction · 0.90

Tested by

no test coverage detected