ruby-changes:24714
From: naruse <ko1@a...>
Date: Wed, 22 Aug 2012 07:31:20 +0900 (JST)
Subject: [ruby-changes:24714] naruse:r36765 (trunk): Suppress warnings
naruse 2012-08-22 07:30:43 +0900 (Wed, 22 Aug 2012) New Revision: 36765 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36765 Log: Suppress warnings Modified files: trunk/lib/net/http/response.rb trunk/test/ruby/test_iseq.rb trunk/test/rubygems/test_gem_specification.rb Index: lib/net/http/response.rb =================================================================== --- lib/net/http/response.rb (revision 36764) +++ lib/net/http/response.rb (revision 36765) @@ -372,7 +372,7 @@ def read clen, dest, ignore_eof = false temp_dest = inflate_adapter(dest) - data = @socket.read clen, temp_dest, ignore_eof + @socket.read clen, temp_dest, ignore_eof end ## Index: test/ruby/test_iseq.rb =================================================================== --- test/ruby/test_iseq.rb (revision 36764) +++ test/ruby/test_iseq.rb (revision 36765) @@ -17,7 +17,7 @@ end if defined?(RubyVM::InstructionSequence.load) def test_disasm_encoding - src = "\u{3042} = 1" + src = "\u{3042} = 1; \u{3042}" enc, Encoding.default_internal = Encoding.default_internal, src.encoding assert_equal(src.encoding, RubyVM::InstructionSequence.compile(src).disasm.encoding) src.encode!(Encoding::Shift_JIS) Index: test/rubygems/test_gem_specification.rb =================================================================== --- test/rubygems/test_gem_specification.rb (revision 36764) +++ test/rubygems/test_gem_specification.rb (revision 36765) @@ -39,6 +39,8 @@ def setup super + @orig_yamler = YAML::ENGINE.yamler + YAML::ENGINE.yamler = 'psych' @a1 = quick_spec 'a', '1' do |s| s.executable = 'exec' @@ -65,6 +67,11 @@ load 'rubygems/syck_hack.rb' end + def teardown + super + YAML::ENGINE.yamler = @orig_yamler + end + def test_self_attribute_names expected_value = %w[ authors -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/