MCPcopy
hub / github.com/aio-libs/aiohttp / test_invalid_idna

Function test_invalid_idna

tests/test_client_functional.py:3379–3385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3377
3378
3379async def test_invalid_idna() -> None:
3380 session = aiohttp.ClientSession()
3381 try:
3382 with pytest.raises(aiohttp.InvalidURL):
3383 await session.get("http://\u0080owhefopw.com")
3384 finally:
3385 await session.close()
3386
3387
3388async def test_creds_in_auth_and_url() -> None:

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…