async def test_client_session_custom_attr() -> None: session = ClientSession() with pytest.raises(AttributeError): session.custom = None await session.close()
def test_client_session_custom_attr(loop): session = ClientSession(loop=loop) with pytest.warns(DeprecationWarning): session.custom = None
async def test_client_session_custom_attr(loop) -> None: session = ClientSession(loop=loop) with pytest.warns(DeprecationWarning): session.custom = None
async def test_client_session_custom_attr(loop) -> None: session = ClientSession(loop=loop) with pytest.raises(AttributeError): session.custom = None