async def test_client_session_custom_attr() -> None:
    session = ClientSession()
    with pytest.raises(AttributeError):
        session.custom = None
    await session.close()
Beispiel #2
0
def test_client_session_custom_attr(loop):
    session = ClientSession(loop=loop)
    with pytest.warns(DeprecationWarning):
        session.custom = None
Beispiel #3
0
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