diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:58:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:58:09 +0000 |
commit | a82fb88f12a7d15297517f50b35304d2af38958a (patch) | |
tree | 90af8141d302f84fea9294733db66b5544062254 /test/ruby/test_iseq.rb | |
parent | 05be244e60b5aa8edc1d4a0a4d315dd815da2031 (diff) | |
download | ruby-a82fb88f12a7d15297517f50b35304d2af38958a.tar.gz |
test/ruby: suppress runtime warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_iseq.rb')
-rw-r--r-- | test/ruby/test_iseq.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 06931c8ae6..501043eab2 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -9,7 +9,9 @@ class TestISeq < Test::Unit::TestCase end def compile(src, line = nil, opt = nil) - RubyVM::InstructionSequence.new(src, __FILE__, __FILE__, line, opt) + EnvUtil.suppress_warning do + RubyVM::InstructionSequence.new(src, __FILE__, __FILE__, line, opt) + end end def lines src |