(loop)
| 82 | |
| 83 | |
| 84 | def run_briefly(loop): |
| 85 | async def once(): |
| 86 | pass |
| 87 | gen = once() |
| 88 | t = loop.create_task(gen) |
| 89 | # Don't log a warning if the task is not done after run_until_complete(). |
| 90 | # It occurs if the loop is stopped or if a task raises a BaseException. |
| 91 | t._log_destroy_pending = False |
| 92 | try: |
| 93 | loop.run_until_complete(t) |
| 94 | finally: |
| 95 | gen.close() |
| 96 | |
| 97 | |
| 98 | def run_until(loop, pred, timeout=support.SHORT_TIMEOUT): |
nothing calls this directly
no test coverage detected