Skip to content

Commit 24e625e

Browse files
committed
[test] disable few tests on JRuby < 9.1
1 parent 630b2a3 commit 24e625e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ruby/dsa/test_dsa.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/test/ruby/rsa/test_rsa.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)