async def test_client_session_custom_attr() -> None:
    session = ClientSession()
    with pytest.raises(AttributeError):
        session.custom = None
    await session.close()
Exemplo n.º 2
0
def test_client_session_custom_attr(loop):
    session = ClientSession(loop=loop)
    with pytest.warns(DeprecationWarning):
        session.custom = None
Exemplo n.º 3
0
async def test_client_session_custom_attr(loop) -> None:
    session = ClientSession(loop=loop)
    with pytest.warns(DeprecationWarning):
        session.custom = None
Exemplo n.º 4
0
async def test_client_session_custom_attr(loop) -> None:
    session = ClientSession(loop=loop)
    with pytest.raises(AttributeError):
        session.custom = None