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

Method test_coroutine__async_def

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

Source from the content-addressed store, hash-verified

85
86 @skipUnless(IS_PY35, "requires Python 3.5+")
87 def test_coroutine__async_def(self):
88 # This whole test uses the asynchronous coroutine definition syntax
89 # which is invalid on Python <3.5 so it has to be executed from string.
90 try:
91 exec(python_code("""
92 async def coro_func():
93 pass
94 coro = coro_func()
95 self.await_(coro) # to prevent a warning
96 self.assert_match(coro)
97 """))
98 except SyntaxError:
99 pass
100
101 @skipUnless(IS_PY34, "requires Python 3.4+")
102 def test_coroutine_function__decorator(self):

Callers

nothing calls this directly

Calls 1

python_codeFunction · 0.90

Tested by

no test coverage detected