Skip to content

Commit

Permalink
馃攪 Add pytest filterwarning needed by AnyIO in Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Oct 6, 2021
1 parent 51c5edd commit 9b52693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ junit_family = "xunit2"
filterwarnings = [
"error",
'ignore:"@coroutine" decorator is deprecated since Python 3\.8, use "async def" instead:DeprecationWarning',
# TODO: needed by AnyIO in Python 3.9, try to remove after an AnyIO upgrade
'ignore:The loop argument is deprecated since Python 3\.8, and scheduled for removal in Python 3\.10:DeprecationWarning',
# TODO: if these ignores are needed, enable them, otherwise remove them
# 'ignore:The explicit passing of coroutine objects to asyncio\.wait\(\) is deprecated since Python 3\.8:DeprecationWarning',
# 'ignore:Exception ignored in. <socket\.socket fd=-1:pytest.PytestUnraisableExceptionWarning',
Expand Down

0 comments on commit 9b52693

Please sign in to comment.