mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_objectspace.rb: run test_each_object separately
* test/ruby/test_objectspace.rb (TestObjectSpace#test_each_object): run separately. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88bcccd433
commit
596cecb057
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,7 @@ End
|
|||
end
|
||||
|
||||
def test_each_object
|
||||
assert_separately([], <<-End)
|
||||
GC.disable
|
||||
eval('begin; 1.times{}; rescue; ensure; end')
|
||||
arys = []
|
||||
|
@ -81,5 +82,6 @@ End
|
|||
# rescue "can't modify frozen File" error.
|
||||
end
|
||||
}
|
||||
End
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue