(self)
| 109 | class CoroutineTests(BaseTest): |
| 110 | |
| 111 | def test_iscoroutine(self): |
| 112 | async def foo(): pass |
| 113 | |
| 114 | f = foo() |
| 115 | try: |
| 116 | self.assertTrue(asyncio.iscoroutine(f)) |
| 117 | finally: |
| 118 | f.close() # silence warning |
| 119 | |
| 120 | self.assertTrue(asyncio.iscoroutine(FakeCoro())) |
| 121 | |
| 122 | def test_iscoroutine_generator(self): |
| 123 | def foo(): yield |
nothing calls this directly
no test coverage detected