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)