From 41f4317f45021460871bd11c666f438f5517904b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Feb 2016 07:48:02 +0000 Subject: test/ruby: suppress parser warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_variable.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_variable.rb') diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb index 7432cbb6a2..3da836bfc2 100644 --- a/test/ruby/test_variable.rb +++ b/test/ruby/test_variable.rb @@ -90,14 +90,12 @@ class TestVariable < Test::Unit::TestCase def test_shadowing_local_variables bug9486 = '[ruby-core:60501] [Bug #9486]' - x = tap {|x| break local_variables} - assert_equal([:x, :bug9486], x) + assert_equal([:x, :bug9486], tap {|x| break local_variables}, bug9486) end def test_shadowing_block_local_variables bug9486 = '[ruby-core:60501] [Bug #9486]' - x = tap {|;x| break local_variables} - assert_equal([:x, :bug9486], x) + assert_equal([:x, :bug9486], tap {|;x| x = x; break local_variables}, bug9486) end def test_global_variables -- cgit v1.2.3