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

ruby-changes:47612

From: nobu <ko1@a...>
Date: Sun, 3 Sep 2017 09:25:07 +0900 (JST)
Subject: [ruby-changes:47612] nobu:r59728 (trunk): test_io.rb: suppress a warning

nobu	2017-09-03 09:25:01 +0900 (Sun, 03 Sep 2017)

  New Revision: 59728

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59728

  Log:
    test_io.rb: suppress a warning
    
    * test/ruby/test_io.rb (test_single_exception_on_close): suppress
      ambiguous first argument warning with RUBYOPT=-w.

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 59727)
+++ test/ruby/test_io.rb	(revision 59728)
@@ -2836,7 +2836,7 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L2836
       end
     end
     a.each do |r, w|
-      w.write -"\n"
+      w.write(-"\n")
       w.close
       r.close
     end

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

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