chore: rm unused record

This commit is contained in:
Oleg A 2023-09-18 16:23:43 +03:00
parent 4c91df243d
commit 008e64ea9a
No known key found for this signature in database
GPG key ID: 5FE046817A9657C5

View file

@ -187,7 +187,7 @@ class TestDispatcher:
async def test_process_update_empty(self, bot: MockedBot):
dispatcher = Dispatcher()
with pytest.warns(RuntimeWarning, match="Detected unknown update type") as record:
with pytest.warns(RuntimeWarning, match="Detected unknown update type"):
result = await dispatcher._process_update(bot=bot, update=Update(update_id=42))
assert not result