[前][次][番号順一覧][スレッド一覧]

ruby-changes:67949

From: Nobuyoshi <ko1@a...>
Date: Sun, 12 Sep 2021 03:56:42 +0900 (JST)
Subject: [ruby-changes:67949] 308183fffa (master): Prepend the modules in Test::Unit

https://git.ruby-lang.org/ruby.git/commit/?id=308183fffa

From 308183fffab43f1e111d5bb4c60f1380432966e6 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 12 Sep 2021 03:23:59 +0900
Subject: Prepend the modules in Test::Unit

Needs to override Test::Unit::Runner#run, so that RunCount#run
runs which increments @@run_count.  Previously it worked because
these methods were inserted between Test::Unit::Runner#run and
MiniTest::Unit#run.
---
 tool/lib/test/unit.rb | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 8fa3e72..0bb1377 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -1475,18 +1475,18 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L1475
         io.puts format % [test_count, assertion_count, failures, errors, skips]
       end
 
-      include Test::Unit::Options
+      prepend Test::Unit::Options
       prepend Test::Unit::StatusLine
-      include Test::Unit::Parallel
-      include Test::Unit::Statistics
-      include Test::Unit::Skipping
-      include Test::Unit::GlobOption
-      include Test::Unit::RepeatOption
-      include Test::Unit::LoadPathOption
-      include Test::Unit::GCOption
-      include Test::Unit::ExcludesOption
-      include Test::Unit::TimeoutOption
-      include Test::Unit::RunCount
+      prepend Test::Unit::Parallel
+      prepend Test::Unit::Statistics
+      prepend Test::Unit::Skipping
+      prepend Test::Unit::GlobOption
+      prepend Test::Unit::RepeatOption
+      prepend Test::Unit::LoadPathOption
+      prepend Test::Unit::GCOption
+      prepend Test::Unit::ExcludesOption
+      prepend Test::Unit::TimeoutOption
+      prepend Test::Unit::RunCount
 
       ##
       # Begins the full test run. Delegates to +runner+'s #_run method.
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]