diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2021-10-13 14:24:53 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-10-16 19:39:13 +0900 |
commit | cc8ff8b50d445b0621fef9f3dce0da02ec3d406f (patch) | |
tree | 1555de5f8063e2c92cd206a1f08edab8595ca6b4 /test | |
parent | 4991dabdd07a596fe815768438f7103bb51ff411 (diff) | |
download | ruby-cc8ff8b50d445b0621fef9f3dce0da02ec3d406f.tar.gz |
[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
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/utils.rb | 12 |
1 files changed, 3 insertions, 9 deletions
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) |