diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-29 17:30:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-29 18:53:57 +0900 |
commit | 0ad57158c7fb2892094c6a3b0dc306ba0a8a3735 (patch) | |
tree | 9713c33f20f576fc9dadb38fc7395809c7a92a5f /test | |
parent | 71b370f6dda2f6a1d0216e276399557b55138fcd (diff) |
Remove redundant calls
The ArgumentError should raise in `isolate`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5053
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_proc.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 16efd13d7c..1f87085f9f 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1597,18 +1597,18 @@ class TestProc < Test::Unit::TestCase 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 |