ruby-changes:67966
From: Hiroshi <ko1@a...>
Date: Mon, 13 Sep 2021 11:08:26 +0900 (JST)
Subject: [ruby-changes:67966] 2982464a8e (master): Revert "Resolved conflict initializers"
https://git.ruby-lang.org/ruby.git/commit/?id=2982464a8e From 2982464a8e3f07e769d8d6eb0fd70b01c168a962 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 13 Sep 2021 10:54:24 +0900 Subject: Revert "Resolved conflict initializers" This reverts commit 62db6e47b6c0fbba337649bfa468ec221d5d1001. 308183fffab43f1e111d5bb4c60f1380432966e6 is the correct solution about this. --- tool/lib/test/unit.rb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 6e4b643..bfa1964 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -80,12 +80,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L80 module Options # :nodoc: all def initialize(*, &block) @init_hook = block - @report = [] - @errors = @failures = @skips = 0 - @verbose = false - @mutex = Thread::Mutex.new - @info_signal = Signal.list['INFO'] - @repeat_count = nil @options = nil super(&nil) end @@ -1433,6 +1427,19 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L1427 last_before_assertion.sub(/:in .*$/, '') end + ## + # Writes status for failed test +meth+ in +klass+ which finished with + # exception +e+ + + def initialize # :nodoc: + @report = [] + @errors = @failures = @skips = 0 + @verbose = false + @mutex = Thread::Mutex.new + @info_signal = Signal.list['INFO'] + @repeat_count = nil + end + def synchronize # :nodoc: if @mutex then @mutex.synchronize { yield } -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/