Skip to content

Commit 8144d4c

Browse files
committed
Suppres the warning for comment in JSON
Suppres it for now because JRuby version does not support it yet.
1 parent 8972c6d commit 8144d4c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/json/json_parser_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ def test_parse_arrays
219219
def test_parse_json_primitive_values
220220
assert_raise(JSON::ParserError) { parse('') }
221221
assert_raise(TypeError) { parse(nil) }
222-
assert_raise(JSON::ParserError) { parse(' /* foo */ ') }
222+
EnvUtil.suppress_warning do # still no warning in JRuby verions
223+
assert_raise(JSON::ParserError) { parse(' /* foo */ ') }
224+
end
223225
assert_equal nil, parse('null')
224226
assert_equal false, parse('false')
225227
assert_equal true, parse('true')

0 commit comments

Comments
 (0)