summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2023-03-14 14:59:59 +0800
committergit <svn-admin@ruby-lang.org>2023-04-25 23:21:57 +0000
commitc9b61ec53e2e2fc914d3f95e189b8e9f3bbd851a (patch)
treec046d384f10600b6ccae4cf8f347f8213ca8542f /test
parent82995d4615e993f1d13f3e826b93fbd65c47e19e (diff)
downloadruby-c9b61ec53e2e2fc914d3f95e189b8e9f3bbd851a.tar.gz
[ruby/pp] Skip certain tests for JRuby
https://github.com/ruby/pp/commit/f7bde31ca9
Diffstat (limited to 'test')
-rw-r--r--test/test_pp.rb4
1 files changed, 3 insertions, 1 deletions
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("[<inspect:[...]>]\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