10000 Suppress warnings · ruby/ruby@b0837c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0837c4

Browse files
committed
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 8de500c commit b0837c4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

lib/net/http/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def inflate_adapter(dest)
372372
def read clen, dest, ignore_eof = false
373373
temp_dest = inflate_adapter(dest)
374374

375-
data = @socket.read clen, temp_dest, ignore_eof
375+
@socket.read clen, temp_dest, ignore_eof
376376
end
377377

378378
##

test/ruby/test_iseq.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_unsupport_type
1717
end if defined?(RubyVM::InstructionSequence.load)
1818

1919
def test_disasm_encoding
20-
src = "\u{3042} = 1"
20+
src = "\u{3042} = 1; \u{3042}"
2121
enc, Encoding.default_internal = Encoding.default_internal, src.encoding
2222
assert_equal(src.encoding, RubyVM::InstructionSequence.compile(src).disasm.encoding)
2323
src.encode!(Encoding::Shift_JIS)

test/rubygems/test_gem_specification.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class TestGemSpecification < Gem::TestCase
3939

4040
def setup
4141
super
42+
@orig_yamler = YAML::ENGINE.yamler
43+
YAML::ENGINE.yamler = 'psych'
4244

4345
@a1 = quick_spec 'a', '1' do |s|
4446
s.executable = 'exec'
@@ -65,6 +67,11 @@ def setup
6567
load 'rubygems/syck_hack.rb'
6668
end
6769

70+
def teardown
71+
super
72+
YAML::ENGINE.yamler = @orig_yamler
73+
end
74+
6875
def test_self_attribute_names
6976
expected_value = %w[
7077
authors

0 commit comments

Comments
 (0)
0