aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/net/http/response.rb2
-rw-r--r--test/ruby/test_iseq.rb2
-rw-r--r--test/rubygems/test_gem_specification.rb7
3 files changed, 9 insertions, 2 deletions
diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb
index 69c84bfe28..6b044c3d34 100644
--- a/lib/net/http/response.rb
+++ b/lib/net/http/response.rb
@@ -372,7 +372,7 @@ class Net::HTTPResponse
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
##
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb
index 25a282ee2d..ad5391383e 100644
--- a/test/ruby/test_iseq.rb
+++ b/test/ruby/test_iseq.rb
@@ -17,7 +17,7 @@ class TestISeq < Test::Unit::TestCase
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)
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index c0dfd4bafe..f346240692 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -39,6 +39,8 @@ end
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 @@ end
load 'rubygems/syck_hack.rb'
end
+ def teardown
+ super
+ YAML::ENGINE.yamler = @orig_yamler
+ end
+
def test_self_attribute_names
expected_value = %w[
authors