diff options
-rw-r--r-- | test/ruby/test_hash.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 6ef817d0c2..7cf5b8a98d 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1208,6 +1208,8 @@ class TestHash < Test::Unit::TestCase end def test_exception_in_rehash + return unless @cls == Hash + bug9187 = '[ruby-core:58728] [Bug #9187]' prepare = <<-EOS @@ -1222,10 +1224,10 @@ class TestHash < Test::Unit::TestCase return 0 end end + h = {Foo.new => true} EOS code = <<-EOS - h = {Foo.new => true} 10_0000.times do h.rehash rescue nil end |