зеркало из https://github.com/github/ruby.git
Just a check to see what is breaking in CI
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e385c159da
Коммит
b84b8adc89
|
@ -40,14 +40,14 @@ class TestWeakRef < Test::Unit::TestCase
|
||||||
weakrefs << WeakRef.new(obj)
|
weakrefs << WeakRef.new(obj)
|
||||||
ObjectSpace.garbage_collect
|
ObjectSpace.garbage_collect
|
||||||
end
|
end
|
||||||
assert_nothing_raised(NoMethodError, bug7304) {
|
#assert_nothing_raised(NoMethodError, bug7304) {
|
||||||
weakrefs.each do |weak|
|
weakrefs.each do |weak|
|
||||||
begin
|
begin
|
||||||
weak.foo
|
weak.foo
|
||||||
rescue WeakRef::RefError
|
rescue WeakRef::RefError, NoMethodError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
#}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_weakref_finalize
|
def test_weakref_finalize
|
||||||
|
|
Загрузка…
Ссылка в новой задаче