summaryrefslogtreecommitdiff
path: root/test/open-uri
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-06 17:08:36 +0900
committergit <svn-admin@ruby-lang.org>2022-10-06 17:15:26 +0900
commitcc5313ceab756887e5dcddcb3b293a842a01fbac (patch)
tree114db9e8728c5e3cc40ee28f3029c45a2e452be1 /test/open-uri
parentd15b38d944c27cb627741206d8adf285153a4df2 (diff)
downloadruby-cc5313ceab756887e5dcddcb3b293a842a01fbac.tar.gz
[ruby/open-uri] Run global constant count test only under Ruby 3.2
https://github.com/ruby/open-uri/commit/a8f1605ae9
Diffstat (limited to 'test/open-uri')
-rw-r--r--test/open-uri/test_open-uri.rb1
1 files changed, 1 insertions, 0 deletions
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