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