diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-08 14:04:43 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-11 08:48:03 +0900 |
commit | 62db6e47b6c0fbba337649bfa468ec221d5d1001 (patch) | |
tree | dfc3bf415ac977a4e697b42794c7b148df199cd4 /tool | |
parent | 7ef0a4634c742a15dc1d4bc9a62e8ff5d8ba5c09 (diff) |
Resolved conflict initializers
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4813
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/test/unit.rb | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 90f13c31d2..ce470a7c13 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -42,6 +42,12 @@ module Test 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 @@ -1421,19 +1427,6 @@ module Test 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 } |