(self)
| 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): |
nothing calls this directly
no test coverage detected