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

ruby-changes:69517

From: Nobuyoshi <ko1@a...>
Date: Fri, 29 Oct 2021 18:54:10 +0900 (JST)
Subject: [ruby-changes:69517] 0ad57158c7 (master): Remove redundant calls

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

From 0ad57158c7fb2892094c6a3b0dc306ba0a8a3735 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 29 Oct 2021 17:30:46 +0900
Subject: Remove redundant calls

The ArgumentError should raise in `isolate`.
---
 test/ruby/test_proc.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index 16efd13d7c5..1f87085f9fa 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -1597,18 +1597,18 @@ class TestProc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_proc.rb#L1597
   def test_isolate
     assert_raise_with_message ArgumentError, /\(a\)/ do
       a = :a
-      Proc.new{p a}.isolate.call
+      Proc.new{p a}.isolate
     end
 
     assert_raise_with_message ArgumentError, /\(a\)/ do
       a = :a
       1.times{
-        Proc.new{p a}.isolate.call
+        Proc.new{p a}.isolate
       }
     end
 
     assert_raise_with_message ArgumentError, /yield/ do
-      Proc.new{yield}.isolate.call
+      Proc.new{yield}.isolate
     end
 
     # binding
-- 
cgit v1.2.1


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

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