Skip to content

Commit a8f1605

Browse files
committed
Run global constant count test only under Ruby 3.2
1 parent 062cffd commit a8f1605

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/open-uri/test_open-uri.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ def test_ftp_over_http_proxy_auth
904904

905905
def test_meta_init_doesnt_bump_global_constant_state
906906
skip "RubyVM.stat not defined" unless defined? RubyVM.stat
907+
skip unless RubyVM.stat.has_key?(:global_constant_state)
907908

908909
OpenURI::Meta.init(Object.new) # prewarm
909910

0 commit comments

Comments
 (0)