зеркало из https://github.com/github/ruby.git
test/thread: relax internal implementation check in error message
Queue, SizedQueue, and ConditionVariable internal implementation should not be tied to using arrays. Implementation details can change and I am working on a change to remove the dependency on arrays (as others may attempt, too) by using ccan/list for the waiter list. * test/thread/test_cv.rb (test_dump): remove check for Array * test/thread/test_queue.rb (test_dump): ditto [ruby-core:81001] [Misc #13541] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
257eacee2c
Коммит
6ad7c53ba9
|
@ -218,7 +218,7 @@ INPUT
|
|||
end
|
||||
|
||||
condvar = DumpableCV.new
|
||||
assert_raise_with_message(TypeError, /internal Array/, bug9674) do
|
||||
assert_raise(TypeError, bug9674) do
|
||||
Marshal.dump(condvar)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -278,7 +278,7 @@ class TestQueue < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
q = DumpableQueue.new
|
||||
assert_raise_with_message(TypeError, /internal Array/, bug9674) do
|
||||
assert_raise(TypeError, bug9674) do
|
||||
Marshal.dump(q)
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче