File: helpers.py

package info (click to toggle)
python-snapcast 2.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: python: 1,564; makefile: 9
file content (7 lines) | stat: -rw-r--r-- 163 bytes parent folder | download
1
2
3
4
5
6
7
"""Asyncio test helpers from https://blog.miguelgrinberg.com/post/unit-testing-asyncio-code"""

import asyncio


def async_run(coro):
    return asyncio.run(coro)