From ea88f49a76912fe0e5f0e125544356ed5b17482b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 27 Apr 2021 17:06:51 +0900 Subject: [PATCH] test/ruby/test_exception.rb: suppress "warning: statement not reached" --- test/ruby/test_exception.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 0a2a31281d..af29163ce3 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -126,7 +126,7 @@ class TestException < Test::Unit::TestCase def test_exception_in_ensure_with_return @string = "[ruby-core:97104] [Bug #16618]" def self.meow - return + return if true # This if modifier suppresses "warning: statement not reached" assert(false) rescue assert(false)