From 0dc1cd407e7775610f2bcaef6c1282369867f91c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 11 Sep 2025 10:34:14 +0900 Subject: [PATCH] Handle `uninitialized constant JSON::GenericObject` at ruby/ruby. ``` 1) Error: JSONGenericObjectTest#test_from_hash: Test::Unit::ProxyError: uninitialized constant JSON::GenericObject /Users/hsbt/Documents/github.com/ruby/ruby/.ext/common/json/common.rb:1006:in 'JSON.const_missing' /Users/hsbt/Documents/github.com/ruby/ruby/test/json/json_generic_object_test.rb:8:in 'JSONGenericObjectTest#setup' ``` --- test/json/json_generic_object_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/json/json_generic_object_test.rb b/test/json/json_generic_object_test.rb index 333da70479..995d57edaf 100644 --- a/test/json/json_generic_object_test.rb +++ b/test/json/json_generic_object_test.rb @@ -9,6 +9,8 @@ class JSONGenericObjectTest < Test::Unit::TestCase else omit("JSON::GenericObject is not available") end + rescue NameError + omit("JSON::GenericObject is not available") end def test_attributes