зеркало из https://github.com/github/ruby.git
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8de500cefc
Коммит
b0837c440e
|
@ -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
|
||||
|
||||
##
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче