From 6b0ec48db2045a73d450c2ccfd38de20018cf47b Mon Sep 17 00:00:00 2001 From: svlandeg Date: Mon, 17 Nov 2025 21:49:37 +0100 Subject: [PATCH] remove need for python 3.11 --- tests/test_schema_compat_pydantic_v2.py | 3 +-- tests/utils.py | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_schema_compat_pydantic_v2.py b/tests/test_schema_compat_pydantic_v2.py index 87d7ed66d..bc957d343 100644 --- a/tests/test_schema_compat_pydantic_v2.py +++ b/tests/test_schema_compat_pydantic_v2.py @@ -4,7 +4,7 @@ from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel -from tests.utils import needs_py311, needs_pydanticv2 +from tests.utils import needs_pydanticv2 @pytest.fixture(name="client") @@ -32,7 +32,6 @@ def get_client(): @needs_pydanticv2 -@needs_py311 def test_openapi_schema(client: TestClient): response = client.get("openapi.json") assert response.json() == snapshot( diff --git a/tests/utils.py b/tests/utils.py index 161c3a55c..691e92bbf 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -8,9 +8,6 @@ needs_py39 = pytest.mark.skipif(sys.version_info < (3, 9), reason="requires pyth needs_py310 = pytest.mark.skipif( sys.version_info < (3, 10), reason="requires python3.10+" ) -needs_py311 = pytest.mark.skipif( - sys.version_info < (3, 11), reason="requires python3.11+" -) needs_py_lt_314 = pytest.mark.skipif( sys.version_info > (3, 13), reason="requires python3.13-" )