]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔧 Correct DeprecationWarning config and comment in pytest settings (#4008)
authorThomas Grainger <tagrain@gmail.com>
Thu, 7 Oct 2021 16:21:46 +0000 (17:21 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 16:21:46 +0000 (18:21 +0200)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pyproject.toml

index 73a02010991967eca1635e3f6afbc7defb32b178..d06f335001e6af1bcf004ce56ec12f0da78d386c 100644 (file)
@@ -139,9 +139,8 @@ xfail_strict = true
 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: needed by asyncio in Python 3.9.7 https://bugs.python.org/issue45097, try to remove on 3.9.8
+    'ignore:The loop argument is deprecated since Python 3\.8, and scheduled for removal in Python 3\.10:DeprecationWarning:asyncio',
     # 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',