Skip to content

Commit 86cf1e8

Browse files
nobumatzbot
authored andcommitted
[ruby/json] Suppres the warning for comment in JSON
Suppres it for now because JRuby version does not support it yet. ruby/json@8144d4cb34
1 parent 6be7b1f commit 86cf1e8

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)