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

ruby-changes:34139

From: akr <ko1@a...>
Date: Thu, 29 May 2014 07:59:13 +0900 (JST)
Subject: [ruby-changes:34139] akr:r46220 (trunk): Suppress warnings.

akr	2014-05-29 07:59:07 +0900 (Thu, 29 May 2014)

  New Revision: 46220

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

  Log:
    Suppress warnings.

  Modified files:
    trunk/test/socket/test_unix.rb
Index: test/socket/test_unix.rb
===================================================================
--- test/socket/test_unix.rb	(revision 46219)
+++ test/socket/test_unix.rb	(revision 46220)
@@ -67,7 +67,7 @@ class TestSocket_UNIXSocket < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/socket/test_unix.rb#L67
             assert(recv_io_ary[i].close_on_exec?)
           }
         ensure
-          recv_io_ary.each {|io| io.close if !io.closed? }
+          recv_io_ary.each {|io2| io2.close if !io2.closed? }
         end
       }
     }
@@ -108,7 +108,7 @@ class TestSocket_UNIXSocket < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/socket/test_unix.rb#L108
             assert(recv_io_ary[i].close_on_exec?)
           }
         ensure
-          recv_io_ary.each {|io| io.close if !io.closed? }
+          recv_io_ary.each {|io2| io2.close if !io2.closed? }
         end
       }
     }

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

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