From cda8bc3657b58a5376e7bd7beec346505ebe5893 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Sat, 23 Oct 2021 13:35:04 +0900 Subject: [PATCH] [ruby/openssl] test/openssl/test_ssl: use assert_raise in test_bad_socket The Ruby tree disallows assert_raises. https://github.com/ruby/openssl/commit/9b4f761e74 --- test/openssl/test_ssl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 15e8d7e3f3..65dbe7ac24 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -6,7 +6,7 @@ if defined?(OpenSSL) class OpenSSL::TestSSL < OpenSSL::SSLTestCase def test_bad_socket bad_socket = Struct.new(:sync).new - assert_raises TypeError do + assert_raise TypeError do socket = OpenSSL::SSL::SSLSocket.new bad_socket # if the socket is not a T_FILE, `connect` will segv because it tries # to get the underlying file descriptor but the API it calls assumes