aboutsummaryrefslogtreecommitdiffstats
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.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb
index fdc223b751..0a5d9ca822 100644
--- a/test/ruby/test_iseq.rb
+++ b/test/ruby/test_iseq.rb
@@ -121,9 +121,7 @@ class TestISeq < Test::Unit::TestCase
c = Class.new{ def foobar() end }
a, b = eval("# encoding: us-ascii\n'foobar'.freeze"),
- ISeq.of(c.instance_method(:foobar)).label
-
- assert_equal a.object_id, b.object_id,
- "#{a.inspect}.object_id != #{b.inspect}.object_id"
+ ISeq.of(c.instance_method(:foobar)).label
+ assert_same a, b
end
end