Skip to content

Commit 1a16a63

Browse files
committed
Remove custom event_loop fixture to fix async test failures
Signed-off-by: Roberto Rodriguez <[email protected]>
1 parent 75c5fdc commit 1a16a63

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/conftest.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
"""Configuration for pytest."""
22
import pytest
3-
import asyncio
43
import sys
54
import os
65
import tempfile
76
import shutil
8-
from typing import Generator
97
from unittest.mock import MagicMock
108

119
# Add the project root to the Python path for imports
@@ -147,14 +145,6 @@ class StreamInactiveError(Exception):
147145
# and provide shared fixtures across all tests.
148146

149147

150-
@pytest.fixture(scope="session")
151-
def event_loop() -> Generator[asyncio.AbstractEventLoop, None, None]:
152-
"""Create an instance of the default event loop for each test case."""
153-
loop = asyncio.get_event_loop_policy().new_event_loop()
154-
yield loop
155-
loop.close()
156-
157-
158148
@pytest.fixture(scope="session")
159149
def temp_dir():
160150
"""Create a temporary directory for tests."""

0 commit comments

Comments
 (0)