Skip to content

Commit 0db183c

Browse files
committed
Remove custom event_loop fixture
Signed-off-by: Mattt Zmuda <[email protected]>
1 parent 84ad65f commit 0db183c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ rye = { dev-dependencies = [
3333
] }
3434

3535
[tool.pytest.ini_options]
36+
asyncio_mode = "auto"
3637
testpaths = "tests/"
3738

3839
[tool.setuptools]

tests/conftest.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
from unittest import mock
44

55
import pytest
6-
import pytest_asyncio
7-
8-
9-
@pytest_asyncio.fixture(scope="session", autouse=True)
10-
def event_loop():
11-
event_loop_policy = asyncio.get_event_loop_policy()
12-
loop = event_loop_policy.new_event_loop()
13-
yield loop
14-
loop.close()
156

167

178
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)