Skip to content

Commit 4160d43

Browse files
stainless-botRobertCraigie
authored andcommitted
chore(internal): bump pytest-asyncio (#60)
1 parent d489180 commit 4160d43

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

poetry.lock

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mypy = "1.4.1"
2525
black = "23.3.0"
2626
respx = "0.19.2"
2727
pytest = "7.1.1"
28-
pytest-asyncio = "0.18.3"
28+
pytest-asyncio = "0.21.1"
2929
ruff = "0.0.282"
3030
isort = "5.10.1"
3131
time-machine = "^2.9.0"

tests/conftest.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import asyncio
2+
from typing import Iterator
23

34
import pytest
45

56
pytest.register_assert_rewrite("tests.utils")
67

78

89
@pytest.fixture(scope="session")
9-
def event_loop() -> asyncio.AbstractEventLoop:
10-
return asyncio.new_event_loop()
10+
def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
11+
loop = asyncio.new_event_loop()
12+
yield loop
13+
loop.close()

0 commit comments

Comments
 (0)