(self)
| 107 | |
| 108 | @skipUnless(IS_PY35, "requires Python 3.5+") |
| 109 | def test_coroutine_function__async_def(self): |
| 110 | # This whole test uses the asynchronous coroutine definition syntax |
| 111 | # which is invalid on Python <3.5 so it has to be executed from string. |
| 112 | try: |
| 113 | exec(python_code(""" |
| 114 | async def coro_func(): |
| 115 | pass |
| 116 | self.assert_no_match(coro_func) |
| 117 | """)) |
| 118 | except SyntaxError: |
| 119 | pass |
| 120 | |
| 121 | test_repr = lambda self: self.assert_repr(__unit__.Coroutine()) |
| 122 |
nothing calls this directly
no test coverage detected