mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Clear error messages before process and get errors. [ruby-dev:43791] [Bug #4879]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5174425678
commit
bfa6c6b41b
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ class OpenSSL::TestPKeyRSA < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_new
|
||||
OpenSSL.errors
|
||||
key = OpenSSL::PKey::RSA.new 512
|
||||
pem = key.public_key.to_pem
|
||||
OpenSSL::PKey::RSA.new pem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue