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

ruby-changes:65010

From: Kazuhiro <ko1@a...>
Date: Sat, 23 Jan 2021 10:53:57 +0900 (JST)
Subject: [ruby-changes:65010] 9de68a5221 (master): Fix a warning

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

From 9de68a52213873da84a5341fd3db15e5c8b6cb9a Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Sat, 23 Jan 2021 10:52:17 +0900
Subject: Fix a warning

```
.../ruby/test/net/http/test_httpresponse.rb:81: warning: constant RubyVM::MJIT is deprecated
```
---
 test/net/http/test_httpresponse.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb
index ea2a121..cb86b54 100644
--- a/test/net/http/test_httpresponse.rb
+++ b/test/net/http/test_httpresponse.rb
@@ -78,7 +78,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/net/http/test_httpresponse.rb#L78
 
   def test_read_body_block_mod
     # http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3019353
-    if defined?(RubyVM::JIT) && RubyVM::JIT.enabled? || defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
+    if defined?(RubyVM::JIT) ? RubyVM::JIT.enabled? : defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
       skip 'too unstable with --jit-wait, and extending read_timeout did not help it'
     end
     IO.pipe do |r, w|
-- 
cgit v1.1


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

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