From 0a466e30726a259907bb6f73557faa22d89545ee Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 10 Mar 2023 11:54:59 +0900 Subject: [PATCH] Remove stale tests These tests were added at a198bb3929a4562a12b4aa245a297c7d3695149f, when these classes were `Struct`s. Since these classes have been rewritten, these tests no longer make sense. --- test/ruby/test_thread_cv.rb | 6 ------ test/ruby/test_thread_queue.rb | 12 ------------ 2 files changed, 18 deletions(-) diff --git a/test/ruby/test_thread_cv.rb b/test/ruby/test_thread_cv.rb index 88733419da14fd..eb88b9606cebf1 100644 --- a/test/ruby/test_thread_cv.rb +++ b/test/ruby/test_thread_cv.rb @@ -6,12 +6,6 @@ class TestThreadConditionVariable < Test::Unit::TestCase ConditionVariable = Thread::ConditionVariable Mutex = Thread::Mutex - def test_initialized - assert_raise(TypeError) { - ConditionVariable.allocate.wait(nil) - } - end - def test_condvar_signal_and_wait mutex = Thread::Mutex.new condvar = Thread::ConditionVariable.new diff --git a/test/ruby/test_thread_queue.rb b/test/ruby/test_thread_queue.rb index 723450ad23d971..16a0490556b256 100644 --- a/test/ruby/test_thread_queue.rb +++ b/test/ruby/test_thread_queue.rb @@ -7,18 +7,6 @@ class TestThreadQueue < Test::Unit::TestCase Queue = Thread::Queue SizedQueue = Thread::SizedQueue - def test_queue_initialized - assert_raise(TypeError) { - Queue.allocate.push(nil) - } - end - - def test_sized_queue_initialized - assert_raise(TypeError) { - SizedQueue.allocate.push(nil) - } - end - def test_queue grind(5, 1000, 15, Queue) end