Remove kwargs copy in TelegramEventObserver.trigger and remove __deepcopy__ method from AiohttpSession

This commit is contained in:
Alex Root Junior 2020-01-13 21:30:06 +02:00
parent 824b672513
commit b61cc04e9a
3 changed files with 2 additions and 25 deletions

View file

@ -123,11 +123,3 @@ class TestAiohttpSession:
assert session == ctx
mocked_close.awaited_once()
mocked_create_session.awaited_once()
@pytest.mark.asyncio
async def test_deepcopy(self):
# Session should be copied without aiohttp.ClientSession
async with AiohttpSession() as session:
cloned_session = copy.deepcopy(session)
assert cloned_session != session
assert cloned_session._session is None