mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
e385c159da
commit
b84b8adc89
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue