Skip to content

Commit b83bf6f

Browse files
fix: update tests to reflect logging
1 parent d6fba2b commit b83bf6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/server/test_lowlevel_exception_handling.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ async def test_exception_handling_with_raise_exceptions_true():
2020
with pytest.raises(RuntimeError, match="Test error"):
2121
await server._handle_message(test_exception, session, {}, raise_exceptions=True)
2222

23-
# Should not send log message when re-raising
24-
session.send_log_message.assert_not_called()
23+
session.send_log_message.assert_not_called_once()
2524

2625

2726
@pytest.mark.anyio

0 commit comments

Comments
 (0)