summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-13 10:54:24 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-13 11:07:32 +0900
commit2982464a8e3f07e769d8d6eb0fd70b01c168a962 (patch)
tree37bbb95fa8634123b96451f7ef062f34d2366479 /tool/lib
parentec6b444fbf975421150b3ff3a2c50bcc53aaf854 (diff)
Revert "Resolved conflict initializers"
This reverts commit 62db6e47b6c0fbba337649bfa468ec221d5d1001. 308183fffab43f1e111d5bb4c60f1380432966e6 is the correct solution about this.
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/test/unit.rb19
1 files changed, 13 insertions, 6 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 6e4b643ad8..bfa1964963 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -80,12 +80,6 @@ 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
@@ -1433,6 +1427,19 @@ 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 }