diff --git a/tests/utils/test_session.py b/tests/utils/test_session.py index ff19c0ca6dad..02cba9e070dc 100644 --- a/tests/utils/test_session.py +++ b/tests/utils/test_session.py @@ -63,5 +63,5 @@ async def test_async_session(self): session = create_async_session() session.add(Log(event="hihi1234")) await session.commit() - l = await session.scalar(select(Log).where(Log.event == "hihi1234").limit(1)) # noqa: E741 - assert l.event == "hihi1234" + my_special_log_event = await session.scalar(select(Log).where(Log.event == "hihi1234").limit(1)) + assert my_special_log_event.event == "hihi1234"