ruby-changes:27832
From: naruse <ko1@a...>
Date: Sat, 23 Mar 2013 23:21:31 +0900 (JST)
Subject: [ruby-changes:27832] naruse:r39884 (trunk): Suppress warning: OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement
naruse 2013-03-23 23:21:22 +0900 (Sat, 23 Mar 2013) New Revision: 39884 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39884 Log: Suppress warning: OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement Modified files: trunk/test/openssl/test_x509store.rb Index: test/openssl/test_x509store.rb =================================================================== --- test/openssl/test_x509store.rb (revision 39883) +++ test/openssl/test_x509store.rb (revision 39884) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/test/openssl/test_x509store.rb#L1 +require_relative "../ruby/envutil" require_relative "utils" if defined?(OpenSSL) @@ -21,7 +22,9 @@ class OpenSSL::TestX509Store < Test::Uni https://github.com/ruby/ruby/blob/trunk/test/openssl/test_x509store.rb#L22 cert = OpenSSL::X509::Certificate.new store = OpenSSL::X509::Store.new ctx = OpenSSL::X509::StoreContext.new(store, cert, []) - ctx.cleanup + EnvUtil.suppress_warning do + ctx.cleanup + end ctx.verify end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/