mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/unit.rb: use uniq!
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): use Array#uniq!. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cbbe2cbca4
commit
03e5fb6054
2 changed files with 5 additions and 7 deletions
|
@ -1,4 +1,7 @@
|
|||
Sat Jul 14 16:16:42 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Jul 14 16:16:48 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): use
|
||||
Array#uniq!.
|
||||
|
||||
* lib/test/unit.rb (Test::Unit::Runner#deal): deal tasks to workers.
|
||||
|
||||
|
|
|
@ -632,12 +632,7 @@ module Test
|
|||
end
|
||||
unless @warnings.empty?
|
||||
warn ""
|
||||
ary = []
|
||||
@warnings.reject! do |w|
|
||||
r = ary.include?(w[1].message)
|
||||
ary << w[1].message
|
||||
r
|
||||
end
|
||||
@warnings.uniq! {|w| w[1].message}
|
||||
@warnings.each do |w|
|
||||
warn "#{w[0]}: #{w[1].message} (#{w[1].class})"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue