diff --git a/test/console/debugger_local_test.rb b/test/console/debugger_local_test.rb index 4c803e3ab..08e7d73ac 100644 --- a/test/console/debugger_local_test.rb +++ b/test/console/debugger_local_test.rb @@ -34,7 +34,7 @@ def test_raised_is_accessible_from_repl type "catch Exception" type "c" type "_raised" - assert_line_text(/# e th.each(&:kill) - flunk e.inspect + flunk "#{e.class.name}: #{e.message}" end elsif remote && !NO_REMOTE debug_code_on_local diff --git a/test/support/protocol_test_case.rb b/test/support/protocol_test_case.rb index 54cf783cd..0e654e881 100644 --- a/test/support/protocol_test_case.rb +++ b/test/support/protocol_test_case.rb @@ -483,7 +483,7 @@ def send_request command, **kw params: kw end rescue StandardError => e - flunk create_protocol_message "Failed to send request because of #{e.inspect}" + flunk create_protocol_message "Failed to send request because of #{e.class.name}: #{e.message}" end def send_dap_request command, **kw