1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_thread.rb (TestThread#test_recursive): remove

implementation dependent test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2009-09-16 10:33:14 +00:00
parent 89c3fbd1ab
commit 5529a03271
2 changed files with 5 additions and 9 deletions

View file

@ -450,15 +450,6 @@ class TestThread < Test::Unit::TestCase
m.unlock
end
def test_recursive_error
o = Object.new
def o.inspect
Thread.current[:__recursive_key__][:inspect] = nil
super
end
assert_raise(TypeError) { [o].inspect }
end
def test_recursive_outer
arr = []
obj = Struct.new(:foo, :visited).new(arr, false)