Skip to content

Commit f7bde31

Browse files
committed
Skip certain tests for JRuby
1 parent 4da36cc commit f7bde31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_pp.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ def test_anonymous
173173
end
174174

175175
def test_withinspect
176+
omit if RUBY_ENGINE == "jruby"
176177
a = []
177178
a << HasInspect.new(a)
178179
assert_equal("[<inspect:[...]>]\n", PP.pp(a, ''.dup))
179180
assert_equal("#{a.inspect}\n", PP.pp(a, ''.dup))
180-
end unless RUBY_VERSION < "2.7" # temporary mask to test on JRuby 9.3 (2.6 equivalent)
181+
end
181182

182183
def test_share_nil
183184
begin
@@ -197,6 +198,7 @@ def test_hash
197198
end
198199

199200
def test_hash_in_array
201+
omit if RUBY_ENGINE == "jruby"
200202
assert_equal("[{}]", PP.singleline_pp([->(*a){a.last.clear}.ruby2_keywords.call(a: 1)], ''.dup))
201203
assert_equal("[{}]", PP.singleline_pp([Hash.ruby2_keywords_hash({})], ''.dup))
202204
end

0 commit comments

Comments
 (0)