mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
257eacee2c
commit
6ad7c53ba9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue