From 843804597d96ee7bed25042eb338942d6c898398 Mon Sep 17 00:00:00 2001
From: Eric Wong <e@80x24.org>
Date: Wed, 3 May 2017 02:53:36 +0000
Subject: [PATCH] test/thread: relax checks for internal implementation

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
---
 test/thread/test_cv.rb    | 2 +-
 test/thread/test_queue.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/thread/test_cv.rb b/test/thread/test_cv.rb
index 6779cb37ef..7a34d7462b 100644
--- a/test/thread/test_cv.rb
+++ b/test/thread/test_cv.rb
@@ -218,7 +218,7 @@ def test_dump
     end
 
     condvar = DumpableCV.new
-    assert_raise_with_message(TypeError, /internal Array/, bug9674) do
+    assert_raise(TypeError, bug9674) do
       Marshal.dump(condvar)
     end
   end
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb
index 5ca6972ece..300ffd7036 100644
--- a/test/thread/test_queue.rb
+++ b/test/thread/test_queue.rb
@@ -278,7 +278,7 @@ def test_dump
     end
 
     q = DumpableQueue.new
-    assert_raise_with_message(TypeError, /internal Array/, bug9674) do
+    assert_raise(TypeError, bug9674) do
       Marshal.dump(q)
     end
   end
-- 
EW

