ruby-changes:24061
From: nobu <ko1@a...>
Date: Sat, 16 Jun 2012 13:23:50 +0900 (JST)
Subject: [ruby-changes:24061] nobu:r36112 (trunk): test: reduce unnecessary output
nobu 2012-06-16 13:23:36 +0900 (Sat, 16 Jun 2012) New Revision: 36112 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36112 Log: test: reduce unnecessary output * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no empty lines if no warnigs. Modified files: trunk/lib/test/unit.rb Index: lib/test/unit.rb =================================================================== --- lib/test/unit.rb (revision 36111) +++ lib/test/unit.rb (revision 36112) @@ -626,7 +626,7 @@ @failures += rep.map{|x| x[:result][1] }.inject(:+) @skips += rep.map{|x| x[:result][2] }.inject(:+) end - if @warnings + unless @warnings.empty? warn "" ary = [] @warnings.reject! do |w| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/