]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✅ Enable tests for Python 3.11 (#4881)
authorSebastián Ramírez <tiangolo@gmail.com>
Thu, 3 Nov 2022 12:26:48 +0000 (13:26 +0100)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2022 12:26:48 +0000 (13:26 +0100)
.github/workflows/test.yml
pyproject.toml

index 3e6225db3343f688bf6d6cced4522089324f7c89..9e492c1adacf8062dddfe5d3659f507f35a2fcc3 100644 (file)
@@ -12,7 +12,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ["3.7", "3.8", "3.9", "3.10"]
+        python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
       fail-fast: false
 
     steps:
index 543ba15c1dd4f9cc718cac9aa2b24d2fd24ab00a..ad088ce33527f6d05259f041fe800018534010b8 100644 (file)
@@ -136,6 +136,11 @@ filterwarnings = [
     # 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',
     'ignore:starlette.middleware.wsgi is deprecated and will be removed in a future release\..*:DeprecationWarning:starlette',
+    # TODO: remove after upgrading HTTPX to a version newer than 0.23.0
+    # Including PR: https://github.com/encode/httpx/pull/2309
+    "ignore:'cgi' is deprecated:DeprecationWarning",
+    # For passlib
+    "ignore:'crypt' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
     # see https://trio.readthedocs.io/en/stable/history.html#trio-0-22-0-2022-09-28
     "ignore:You seem to already have a custom.*:RuntimeWarning:trio",
     "ignore::trio.TrioDeprecationWarning",