(self)
| 203 | |
| 204 | @skipUnless(IS_PY35, "requires Python 3.5+") |
| 205 | def test_coroutine_function__async_def(self): |
| 206 | # This whole test uses the asynchronous coroutine definition syntax |
| 207 | # which is invalid on Python <3.5 so it has to be executed from string. |
| 208 | try: |
| 209 | exec(python_code(""" |
| 210 | async def coro_func(): |
| 211 | pass |
| 212 | self.assert_match(coro_func) |
| 213 | """)) |
| 214 | except SyntaxError: |
| 215 | pass |
| 216 | |
| 217 | test_repr = lambda self: self.assert_repr(__unit__.CoroutineFunction()) |
| 218 |
nothing calls this directly
no test coverage detected