Debian Codegraph @

docs/how-to-guides/run_test_with_specific_loop_factories/conftest.py

raw
1 import asyncio
2
3
4 class CustomEventLoop(asyncio.SelectorEventLoop):
5 pass
6
7
8 def pytest_asyncio_loop_factories(config, item):
9 return {
10 "default": asyncio.new_event_loop,
11 "custom": CustomEventLoop,
12 }