mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aab70ee3d3
commit
181815422b
2 changed files with 4 additions and 2 deletions
|
@ -32,6 +32,8 @@ class DRbEx
|
|||
class UError < RuntimeError; end
|
||||
|
||||
def initialize
|
||||
@xary2_hash = nil
|
||||
@hash = nil
|
||||
@hello = 'hello'
|
||||
end
|
||||
attr_reader :hello
|
||||
|
@ -155,6 +157,6 @@ if __FILE__ == $0
|
|||
DRb::DRbServer.default_argc_limit(8)
|
||||
DRb::DRbServer.default_load_limit(4096)
|
||||
DRb.start_service('druby://localhost:0', DRbEx.new)
|
||||
es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
|
||||
DRb::ExtServ.new(ARGV.shift, ARGV.shift)
|
||||
DRb.thread.join
|
||||
end
|
||||
|
|
|
@ -252,7 +252,7 @@ class TestM17N < Test::Unit::TestCase
|
|||
Encoding.default_external = Encoding::UTF_8
|
||||
o = Object.new
|
||||
[Encoding::UTF_16BE, Encoding::UTF_16LE, Encoding::UTF_32BE, Encoding::UTF_32LE].each do |e|
|
||||
o.instance_eval "def inspect;'abc'.encode('#{e}');end"
|
||||
o.instance_eval "undef inspect;def inspect;'abc'.encode('#{e}');end"
|
||||
assert_raise(Encoding::CompatibilityError) { [o].inspect }
|
||||
end
|
||||
ensure
|
||||
|
|
Loading…
Reference in a new issue