From: Marcelo Trylesinski Date: Tue, 15 Jun 2021 10:59:30 +0000 (+0200) Subject: 👷 Add Python 3.10 beta to the CI (#1682) X-Git-Tag: 0.18.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3231211aa364c0406737b78a45268e08c434f94c;p=thirdparty%2Fhttpx.git 👷 Add Python 3.10 beta to the CI (#1682) * 👷 Add Python 3.10 beta to the CI * ⬆️ Upgrade pytest from 5.* to 6.* --- diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index eed46850..8b9c77d5 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 839264f3..12978064 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 62c10c9f..3ac7167e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,6 +14,7 @@ from cryptography.hazmat.primitives.serialization import ( 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)