structio/tests/sniffio_test.py

12 lines
205 B
Python
Raw Normal View History

2023-06-16 14:40:23 +02:00
import sniffio
import structio
async def main():
backend = sniffio.current_async_library()
assert backend == "structio"
print(f"[main] Current async backend: {backend}")
structio.run(main)