From 9955ad54ffecdff5b1755110a276128dbe606b26 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Mon, 17 Nov 2025 21:53:14 +0100 Subject: [PATCH] add back @needs_py310 --- tests/test_schema_compat_pydantic_v2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_schema_compat_pydantic_v2.py b/tests/test_schema_compat_pydantic_v2.py index 367c66231..08e6a04ac 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_pydanticv2 +from tests.utils import needs_pydanticv2, needs_py310 @pytest.fixture(name="client") @@ -31,12 +31,14 @@ def get_client(): return client +@needs_py310 @needs_pydanticv2 def test_get(client: TestClient): response = client.get("/users") assert response.json() == {"username": "alice", "role": "admin"} +@needs_py310 @needs_pydanticv2 def test_openapi_schema(client: TestClient): response = client.get("openapi.json")