1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/open-uri] Run global constant count test only under Ruby 3.2

https://github.com/ruby/open-uri/commit/a8f1605ae9
This commit is contained in:
Hiroshi SHIBATA 2022-10-06 17:08:36 +09:00 committed by git
parent d15b38d944
commit cc5313ceab

View file

@ -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