1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "Resolved conflict initializers"

This reverts commit 62db6e47b6.

  308183fffa is the correct solution
  about this.
This commit is contained in:
Hiroshi SHIBATA 2021-09-13 10:54:24 +09:00
parent ec6b444fbf
commit 2982464a8e
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -80,12 +80,6 @@ module Test
module Options # :nodoc: all module Options # :nodoc: all
def initialize(*, &block) def initialize(*, &block)
@init_hook = 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 @options = nil
super(&nil) super(&nil)
end end
@ -1433,6 +1427,19 @@ module Test
last_before_assertion.sub(/:in .*$/, '') last_before_assertion.sub(/:in .*$/, '')
end 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: def synchronize # :nodoc:
if @mutex then if @mutex then
@mutex.synchronize { yield } @mutex.synchronize { yield }