Skip to content

Commit

Permalink
Restore working on pytest 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jan 16, 2022
1 parent bb6167c commit 2cd678c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_asyncio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def pytest_runtest_setup(item: pytest.Item) -> None:


@pytest.fixture
def event_loop(request: pytest.FixtureRequest) -> Iterator[asyncio.AbstractEventLoop]:
def event_loop(request: "pytest.FixtureRequest") -> Iterator[asyncio.AbstractEventLoop]:
"""Create an instance of the default event loop for each test case."""
loop = asyncio.get_event_loop_policy().new_event_loop()
yield loop
Expand Down

0 comments on commit 2cd678c

Please sign in to comment.