diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index eed46850a9..8b9c77d5f5 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-beta.2"] steps: - uses: "actions/checkout@v2" diff --git a/requirements.txt b/requirements.txt index 839264f383..129780642e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ flake8-pie==0.5.* isort==5.* mypy types-certifi -pytest==5.* +pytest==6.* pytest-asyncio pytest-trio trio diff --git a/tests/conftest.py b/tests/conftest.py index 62c10c9fb4..3ac7167e7e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,6 +14,7 @@ PrivateFormat, load_pem_private_key, ) +from typing_extensions import Literal from uvicorn.config import Config from uvicorn.main import Server @@ -164,7 +165,7 @@ async def redirect_301(scope, receive, send): await send({"type": "http.response.body"}) -SERVER_SCOPE = "session" +SERVER_SCOPE: Literal["session"] = "session" @pytest.fixture(scope=SERVER_SCOPE)