summaryrefslogtreecommitdiff
path: root/test/ruby/test_iseq.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_iseq.rb')
-rw-r--r--test/ruby/test_iseq.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb
index 06931c8..501043e 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