File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ def test_PUBKEY
183183 assert_equal asn1 . value [ 0 ] . value [ 1 ] . value [ 2 ] . value , OpenSSL ::ASN1 . decode ( dup_der ) . value [ 0 ] . value [ 1 ] . value [ 2 ] . value
184184
185185 assert_equal pem , dup_public ( dsa512 ) . export
186- end
186+ end if ! defined? ( JRUBY_VERSION ) || JRUBY_VERSION > '9.1' # set_pqg only since Ruby 2.3
187187
188188 def test_read_DSAPublicKey_pem
189189 # NOTE: where is the standard? PKey::DSA.new can read only PEM
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def test_RSAPublicKey
177177
178178 expected = "b48c0b2bbd35b906c5af4e46ed7355e4aaeadc99"
179179 assert_equal expected , OpenSSL ::Digest ::SHA1 . hexdigest ( key . to_der )
180- end
180+ end if ! defined? ( JRUBY_VERSION ) || JRUBY_VERSION > '9.1' # set_key only since Ruby 2.3
181181
182182 private
183183
You can’t perform that action at this time.
0 commit comments