(self)
| 148 | ])) |
| 149 | |
| 150 | def test_other_loop_future(self): |
| 151 | other_loop = asyncio.new_event_loop() |
| 152 | fut = self.new_future(other_loop) |
| 153 | |
| 154 | async def run(fut): |
| 155 | await fut |
| 156 | |
| 157 | try: |
| 158 | with self.assertRaisesRegex(RuntimeError, |
| 159 | r'Task .* got Future .* attached'): |
| 160 | self.loop.run_until_complete(run(fut)) |
| 161 | finally: |
| 162 | other_loop.close() |
| 163 | |
| 164 | def test_task_awaits_on_itself(self): |
| 165 |
nothing calls this directly
no test coverage detected