ruby-changes:49092
From: nobu <ko1@a...>
Date: Wed, 13 Dec 2017 19:43:26 +0900 (JST)
Subject: [ruby-changes:49092] nobu:r61207 (trunk): test/ruby/test_env.rb: suppress a warning
nobu 2017-12-13 19:43:21 +0900 (Wed, 13 Dec 2017) New Revision: 61207 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61207 Log: test/ruby/test_env.rb: suppress a warning Modified files: trunk/test/ruby/test_env.rb Index: test/ruby/test_env.rb =================================================================== --- test/ruby/test_env.rb (revision 61206) +++ test/ruby/test_env.rb (revision 61207) @@ -129,7 +129,9 @@ class TestEnv < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_env.rb#L129 assert_equal("test", e.key) assert_equal("foo", ENV.fetch("test", "foo")) assert_equal("bar", ENV.fetch("test") { "bar" }) - assert_equal("bar", ENV.fetch("test", "foo") { "bar" }) + EnvUtil.suppress_warning do + assert_equal("bar", ENV.fetch("test", "foo") { "bar" }) + end assert_invalid_env {|v| ENV.fetch(v)} assert_nothing_raised { ENV.fetch(PATH_ENV, "foo") } ENV[PATH_ENV] = "" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/