[前][次][番号順一覧][スレッド一覧]

ruby-changes:73868

From: Hiroshi <ko1@a...>
Date: Thu, 6 Oct 2022 17:15:44 +0900 (JST)
Subject: [ruby-changes:73868] cc5313ceab (master): [ruby/open-uri] Run global constant count test only under Ruby 3.2

https://git.ruby-lang.org/ruby.git/commit/?id=cc5313ceab

From cc5313ceab756887e5dcddcb3b293a842a01fbac Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 6 Oct 2022 17:08:36 +0900
Subject: [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 https://github.com/ruby/ruby/blob/trunk/test/open-uri/test_open-uri.rb#L904
 
   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
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]