diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 08:38:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-16 08:38:22 +0000 |
commit | d19e5328d895ab4cc533127064bb385a54e0a889 (patch) | |
tree | 81fefc9c00cc74973ecf899044e66f7b70a7f392 | |
parent | 36ada1b318dcc0539c81bba3ef9db301f0eeb9fd (diff) | |
download | ruby-d19e5328d895ab4cc533127064bb385a54e0a889.tar.gz |
suppress warning.
* test/ruby/envutil.rb: suppress warnings.
* test/ruby/test_exception.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/envutil.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_exception.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 3e0c1a3f00..3dafeab038 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -206,7 +206,7 @@ module Test 'STDERR.puts('"#{token_dump}"'"START=#{$initial_size = Memory::Status.new.size}")', code, ].join("\n") - out, err, status = EnvUtil.invoke_ruby(args, cmd, true, true) + _, err, status = EnvUtil.invoke_ruby(args, cmd, true, true) before = err.sub!(/^#{token_re}START=(\d+)\n/, '') && $1.to_i after = err.sub!(/^#{token_re}FINAL=(\d+)\n/, '') && $1.to_i assert_equal([true, ""], [status.success?, err], message) diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index d1a5514fad..11c1f6af67 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -245,7 +245,7 @@ class TestException < Test::Unit::TestCase end def test_thread_signal_location - stdout, stderr, status = EnvUtil.invoke_ruby("-d", <<-RUBY, false, true) + _, stderr, _ = EnvUtil.invoke_ruby("-d", <<-RUBY, false, true) Thread.start do begin Process.kill(:INT, $$) @@ -400,7 +400,7 @@ end.join o = Object.new def o.exception(arg) end - RuntimeError.new("a") == o + _ = RuntimeError.new("a") == o EOC end assert_nothing_raised(ArgumentError, bug5865) do |