ruby-changes:40610
From: naruse <ko1@a...>
Date: Sat, 21 Nov 2015 08:51:49 +0900 (JST)
Subject: [ruby-changes:40610] naruse:r52689 (trunk): read may return nil
naruse 2015-11-21 08:51:44 +0900 (Sat, 21 Nov 2015) New Revision: 52689 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52689 Log: read may return nil Modified files: trunk/test/lib/test/unit.rb Index: test/lib/test/unit.rb =================================================================== --- test/lib/test/unit.rb (revision 52688) +++ test/lib/test/unit.rb (revision 52689) @@ -325,7 +325,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L325 def deal(io, type, result, rep, shutting_down = false) worker = @workers_hash[io] cmd = worker.read - cmd.sub!(/\A\.+/, '') + cmd.sub!(/\A\.+/, '') if cmd # read may return nil case cmd when '' # just only dots, ignore -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/