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

ruby-changes:66921

From: Nobuyoshi <ko1@a...>
Date: Wed, 28 Jul 2021 11:44:13 +0900 (JST)
Subject: [ruby-changes:66921] 42ea359a0c (master): Suppress "possibly useless use of * in void context" warning

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

From 42ea359a0ccea15dda3559efdd2f60ec36289868 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 28 Jul 2021 11:43:54 +0900
Subject: Suppress "possibly useless use of * in void context" warning

---
 test/ruby/test_exception.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 0e1d280..87d7d6f 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -561,7 +561,7 @@ end.join https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L561
   end
 
   def test_ensure_after_nomemoryerror
-    assert_separately([], "'a' * 1_000_000_000_000_000_000")
+    assert_separately([], "$_ = 'a' * 1_000_000_000_000_000_000")
   rescue NoMemoryError
     assert_raise(NoMemoryError) do
       assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
-- 
cgit v1.1


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

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