From 4b0d56603d3593112fd5eb280c57ff84af7b665c Mon Sep 17 00:00:00 2001 From: Josef Prenner Date: Fri, 4 Feb 2022 18:46:00 +0100 Subject: [PATCH] changed tests (#2304) --- tests/test_client_functional.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py index 1ac0527b534..dc2fbc8161d 100644 --- a/tests/test_client_functional.py +++ b/tests/test_client_functional.py @@ -3056,7 +3056,6 @@ async def handler(request): assert resp.headers["Custom"] == "x" * 8190 -@pytest.mark.xfail async def test_max_field_size_session_default_fail(aiohttp_client: Any) -> None: async def handler(request): return web.Response(headers={"Custom": "x" * 8191}) @@ -3065,8 +3064,8 @@ async def handler(request): app.add_routes([web.get("/", handler)]) client = await aiohttp_client(app) - - await client.get("/") + with pytest.raises(aiohttp.ClientResponseError): + await client.get("/") async def test_max_field_size_session_explicit(aiohttp_client: Any) -> None: @@ -3108,7 +3107,6 @@ async def handler(request): assert resp.reason == "x" * 8190 -@pytest.mark.xfail async def test_max_line_size_session_default_fail(aiohttp_client: Any) -> None: async def handler(request): return web.Response(status=200, reason="x" * 8192) @@ -3117,8 +3115,8 @@ async def handler(request): app.add_routes([web.get("/", handler)]) client = await aiohttp_client(app) - - await client.get("/") + with pytest.raises(aiohttp.ClientResponseError): + await client.get("/") async def test_max_line_size_session_explicit(aiohttp_client: Any) -> None: