ruby-changes:67126
From: aycabta <ko1@a...>
Date: Thu, 12 Aug 2021 08:47:52 +0900 (JST)
Subject: [ruby-changes:67126] e5f6cd7045 (master): Outer block is required to rescue Timeout::Error
https://git.ruby-lang.org/ruby.git/commit/?id=e5f6cd7045 From e5f6cd70456377f8a63b4efb2ab16928e5d1121a Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Thu, 12 Aug 2021 07:52:23 +0900 Subject: Outer block is required to rescue Timeout::Error --- test/readline/test_readline.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 215a94e..802d5e7 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -556,9 +556,9 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L556 end end assert interrupt_suppressed, "Should handle SIGINT correctly but raised interrupt.\nLog: #{log}\n----" - rescue Timeout::Error => e - assert false, "Timed out to handle SIGINT!\nLog: #{log}\nBacktrace:\n#{e.full_message(highlight: false)}\n----" end + rescue Timeout::Error => e + assert false, "Timed out to handle SIGINT!\nLog: #{log}\nBacktrace:\n#{e.full_message(highlight: false)}\n----" ensure status = Process.wait2(pid).last assert status.success?, "Unknown failure with exit status #{status}\nLog: #{log}\n----" -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/