File tree Expand file tree Collapse file tree
unit_tests/sources/streams/concurrent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -578,7 +578,10 @@ def test_on_exception_return_trace_message_and_on_stream_complete_return_stream_
578578 exception_messages = list (handler .on_exception (exception ))
579579 assert len (exception_messages ) == 1
580580 assert "RuntimeError" in exception_messages [0 ].trace .error .stack_trace
581- assert exception_messages [0 ].trace .error .message == f"An unexpected error occurred in stream { _STREAM_NAME } : RuntimeError"
581+ assert (
582+ exception_messages [0 ].trace .error .message
583+ == f"An unexpected error occurred in stream { _STREAM_NAME } : RuntimeError"
584+ )
582585
583586 assert list (
584587 handler .on_partition_complete_sentinel (
@@ -799,7 +802,10 @@ def test_on_exception_non_ate_uses_templated_message_with_correct_failure_type(s
799802
800803 trace_error = exception_messages [0 ].trace .error
801804 # User-facing message uses safe template (no raw exception text)
802- assert trace_error .message == f"An unexpected error occurred in stream { _STREAM_NAME } : ValueError"
805+ assert (
806+ trace_error .message
807+ == f"An unexpected error occurred in stream { _STREAM_NAME } : ValueError"
808+ )
803809 # Stack trace comes from the inner exception, not the StreamThreadException wrapper
804810 assert "ValueError" in trace_error .stack_trace
805811 assert "StreamThreadException" not in trace_error .stack_trace
You can’t perform that action at this time.
0 commit comments