зеркало из https://github.com/github/ruby.git
* 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:
Родитель
89c3fbd1ab
Коммит
5529a03271
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 16 19:27:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_thread.rb (TestThread#test_recursive): remove
|
||||
implementation dependent test.
|
||||
|
||||
Wed Sep 16 17:42:52 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub (config.status): install-capi needs docdir. And,
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче