9 lines
173 B
Python
9 lines
173 B
Python
|
|
import pytest
|
||
|
|
import asyncio
|
||
|
|
|
||
|
|
@pytest.fixture(scope="session")
|
||
|
|
def event_loop():
|
||
|
|
loop = asyncio.get_event_loop_policy().new_event_loop()
|
||
|
|
yield loop
|
||
|
|
loop.close()
|