diff --git a/test/test_pp.rb b/test/test_pp.rb index ab8f9595f4..9cef555d79 100644 --- a/test/test_pp.rb +++ b/test/test_pp.rb @@ -5,7 +5,7 @@ require 'delegate' require 'test/unit' require 'ruby2_keywords' -# Define bind_call for Ruby 2.6 and earlier +# Define bind_call for Ruby 2.6 and earlier, to allow testing on JRuby 9.3 class UnboundMethod unless public_method_defined?(:bind_call) def bind_call(obj, *args, &block) @@ -168,7 +168,7 @@ class PPCycleTest < Test::Unit::TestCase a << HasInspect.new(a) assert_equal("[]\n", PP.pp(a, ''.dup)) assert_equal("#{a.inspect}\n", PP.pp(a, ''.dup)) - end + end unless RUBY_VERSION < "2.7" # temporary mask to test on JRuby 9.3 (2.6 equivalent) def test_share_nil begin