From c9b61ec53e2e2fc914d3f95e189b8e9f3bbd851a Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Tue, 14 Mar 2023 14:59:59 +0800 Subject: [ruby/pp] Skip certain tests for JRuby https://github.com/ruby/pp/commit/f7bde31ca9 --- test/test_pp.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_pp.rb b/test/test_pp.rb index 4fcb8df4b0..a3e661a9b5 100644 --- a/test/test_pp.rb +++ b/test/test_pp.rb @@ -173,11 +173,12 @@ class PPCycleTest < Test::Unit::TestCase end def test_withinspect + omit if RUBY_ENGINE == "jruby" a = [] a << HasInspect.new(a) assert_equal("[]\n", PP.pp(a, ''.dup)) assert_equal("#{a.inspect}\n", PP.pp(a, ''.dup)) - end unless RUBY_VERSION < "2.7" # temporary mask to test on JRuby 9.3 (2.6 equivalent) + end def test_share_nil begin @@ -197,6 +198,7 @@ class PPSingleLineTest < Test::Unit::TestCase end def test_hash_in_array + omit if RUBY_ENGINE == "jruby" assert_equal("[{}]", PP.singleline_pp([->(*a){a.last.clear}.ruby2_keywords.call(a: 1)], ''.dup)) assert_equal("[{}]", PP.singleline_pp([Hash.ruby2_keywords_hash({})], ''.dup)) end -- cgit v1.2.1