From cc5313ceab756887e5dcddcb3b293a842a01fbac Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 6 Oct 2022 17:08:36 +0900 Subject: [PATCH] [ruby/open-uri] Run global constant count test only under Ruby 3.2 https://github.com/ruby/open-uri/commit/a8f1605ae9 --- test/open-uri/test_open-uri.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/open-uri/test_open-uri.rb b/test/open-uri/test_open-uri.rb index afdd63ae85..a442f59b29 100644 --- a/test/open-uri/test_open-uri.rb +++ b/test/open-uri/test_open-uri.rb @@ -904,6 +904,7 @@ class TestOpenURI < Test::Unit::TestCase def test_meta_init_doesnt_bump_global_constant_state skip "RubyVM.stat not defined" unless defined? RubyVM.stat + skip unless RubyVM.stat.has_key?(:global_constant_state) OpenURI::Meta.init(Object.new) # prewarm