Skip to content

Commit 967b825

Browse files
authored
fix: async fixtures in conftest.py (#2068)
1 parent 1c4438e commit 967b825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def check_import() -> bool:
176176

177177

178178
@pytest.fixture(autouse=True)
179-
def set_event_loop() -> Iterator[None]:
179+
def set_event_loop(anyio_backend: str) -> Iterator[None]:
180180
new_loop = asyncio.new_event_loop()
181181
asyncio.set_event_loop(new_loop)
182182
yield
@@ -205,7 +205,7 @@ def vcr_config():
205205

206206

207207
@pytest.fixture(autouse=True)
208-
async def close_cached_httpx_client() -> AsyncIterator[None]:
208+
async def close_cached_httpx_client(anyio_backend: str) -> AsyncIterator[None]:
209209
yield
210210
for provider in [
211211
'openai',

0 commit comments

Comments
 (0)