Control: tags -1 upstream patch The attached patch resolves the issue by supporting both JSON formats.
Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
diff -Nru python-uvicorn-0.32.0/debian/patches/json-format.patch python-uvicorn-0.32.0/debian/patches/json-format.patch --- python-uvicorn-0.32.0/debian/patches/json-format.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-uvicorn-0.32.0/debian/patches/json-format.patch 2025-03-11 09:38:40.000000000 +0100 @@ -0,0 +1,14 @@ +Description: Fix test failures due to changed JSON formatting. +Author: Bas Couwenberg <sebas...@debian.org> + +--- a/tests/middleware/test_wsgi.py ++++ b/tests/middleware/test_wsgi.py +@@ -72,7 +72,7 @@ async def test_wsgi_post(wsgi_middleware + async with httpx.AsyncClient(transport=transport, base_url="http://testserver") as client: + response = await client.post("/", json={"example": 123}) + assert response.status_code == 200 +- assert response.text == '{"example": 123}' ++ assert response.text in ['{"example": 123}', '{"example":123}'] + + + @pytest.mark.anyio diff -Nru python-uvicorn-0.32.0/debian/patches/series python-uvicorn-0.32.0/debian/patches/series --- python-uvicorn-0.32.0/debian/patches/series 2024-12-09 21:53:12.000000000 +0100 +++ python-uvicorn-0.32.0/debian/patches/series 2025-03-11 09:38:40.000000000 +0100 @@ -3,3 +3,4 @@ 0003-Fix-asyncio-warnings.patch 0004-Use-local-image-resource-to-prevent-privacy-breach.patch 0005-ignore-deprecationwarning-in-tests.patch +json-format.patch