structio/tests/sniffio_test.py

12 lines
210 B
Python

import sniffio
import structio
async def main():
backend = sniffio.current_async_library()
assert backend == "structured-io"
print(f"[main] Current async backend: {backend}")
structio.run(main)