mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Resolved conflict initializers"
This reverts commit62db6e47b6
.308183fffa
is the correct solution about this.
This commit is contained in:
parent
ec6b444fbf
commit
2982464a8e
1 changed files with 13 additions and 6 deletions
|
@ -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 }
|
||||||
|
|
Loading…
Reference in a new issue