summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-22 18:18:32 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-22 19:44:27 +0900
commitedb76e8765b7f165237c8ca6155cff1cc0f18cf9 (patch)
tree83f4ed70e245a6ee67b64e4b48bd9632691d3bad /test/json
parentf2f00e24fa14b8114d6c3bea11170b2b3e309719 (diff)
Prepare to release json-2.5.0
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3975
Diffstat (limited to 'test/json')
-rw-r--r--test/json/json_generator_test.rb2
-rw-r--r--test/json/ractor_test.rb6
2 files changed, 2 insertions, 6 deletions
diff --git a/test/json/json_generator_test.rb b/test/json/json_generator_test.rb
index 5bafc3e..f31b6b2 100644
--- a/test/json/json_generator_test.rb
+++ b/test/json/json_generator_test.rb
@@ -232,7 +232,7 @@ EOT
end
def test_gc
- if respond_to?(:assert_in_out_err)
+ if respond_to?(:assert_in_out_err) && !(RUBY_PLATFORM =~ /java/)
assert_in_out_err(%w[-rjson --disable-gems], <<-EOS, [], [])
bignum_too_long_to_embed_as_string = 1234567890123456789012345
expect = bignum_too_long_to_embed_as_string.to_s
diff --git a/test/json/ractor_test.rb b/test/json/ractor_test.rb
index 96d1528..71105e5 100644
--- a/test/json/ractor_test.rb
+++ b/test/json/ractor_test.rb
@@ -4,10 +4,6 @@
require 'test_helper'
class JSONInRactorTest < Test::Unit::TestCase
- def setup
- skip unless defined? Ractor
- end
-
def test_generate
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
begin;
@@ -31,4 +27,4 @@ class JSONInRactorTest < Test::Unit::TestCase
assert_equal(JSON.parse(expected_json), r.take)
end;
end
-end
+end if defined?(Ractor)