diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-03 11:06:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-03 11:06:21 +0000 |
commit | 41d77571ff4cb3e6ccf238cf63bfdc3c50fc1564 (patch) | |
tree | fca50e34cb900cf7042513c4989a9a40eca378fa /test | |
parent | 010b6e6a38540f5e2e98c9f6053ae0f550d09af6 (diff) | |
download | ruby-41d77571ff4cb3e6ccf238cf63bfdc3c50fc1564.tar.gz |
* test/ruby/test_objectspace.rb: skip RuntimeError
which says a message "can't modify frozen File".
Is that correct behavior?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_objectspace.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb index 921de84c0b..a5299212fc 100644 --- a/test/ruby/test_objectspace.rb +++ b/test/ruby/test_objectspace.rb @@ -75,7 +75,11 @@ End } GC.enable arys.each{|ary| - assert_equal(String, ary.inspect.class) # should not cause SEGV + begin + assert_equal(String, ary.inspect.class) # should not cause SEGV + rescue RuntimeError + # rescue "can't modify frozen File" error. + end } end end |