From cc8ff8b50d445b0621fef9f3dce0da02ec3d406f Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Wed, 13 Oct 2021 14:24:53 +0900 Subject: [ruby/openssl] require Ruby 2.6 or later Drop support for Ruby 2.3, 2.4, and 2.5. As of 2021-10, Ruby 2.6 is the oldest version that still receives security fixes from the Ruby core team, so it doesn't make much sense to keep code for those ancient versions. https://github.com/ruby/openssl/commit/3436bd040d --- test/openssl/utils.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb index ab5fab4ba3..85b771dcee 100644 --- a/test/openssl/utils.rb +++ b/test/openssl/utils.rb @@ -236,9 +236,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase threads = [] begin server_thread = Thread.new do - if Thread.method_defined?(:report_on_exception=) # Ruby >= 2.4 - Thread.current.report_on_exception = false - end + Thread.current.report_on_exception = false begin loop do @@ -254,9 +252,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase end th = Thread.new do - if Thread.method_defined?(:report_on_exception=) - Thread.current.report_on_exception = false - end + Thread.current.report_on_exception = false begin server_proc.call(ctx, ssl) @@ -273,9 +269,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase end client_thread = Thread.new do - if Thread.method_defined?(:report_on_exception=) - Thread.current.report_on_exception = false - end + Thread.current.report_on_exception = false begin block.call(port) -- cgit v1.2.1