Skip to content

Commit

Permalink
changed tests (aio-libs#2304)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorop committed Feb 4, 2022
1 parent ea982ef commit 4b0d566
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test_client_functional.py
Expand Up @@ -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})
Expand All @@ -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:
Expand Down Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 4b0d566

Please sign in to comment.