-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(internal): bump pytest-asyncio (#114)
- Loading branch information
1 parent
e876a6b
commit 679ecd0
Showing
3 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import asyncio | ||
from typing import Iterator | ||
|
||
import pytest | ||
|
||
pytest.register_assert_rewrite("tests.utils") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def event_loop() -> asyncio.AbstractEventLoop: | ||
return asyncio.new_event_loop() | ||
def event_loop() -> Iterator[asyncio.AbstractEventLoop]: | ||
loop = asyncio.new_event_loop() | ||
yield loop | ||
loop.close() |