summaryrefslogtreecommitdiff
path: root/tool/lib/test/unit/parallel.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-09-08 10:35:50 +0900
committerHiroshi SHIBATA <[email protected]>2021-09-11 08:48:03 +0900
commit8ec187c091537aa5d25f19eee522aaec12bc7c26 (patch)
treef514109c18aff8539c911923e91b3024ef2e15c3 /tool/lib/test/unit/parallel.rb
parentc18e9539373a1e90e36e503a51ce5cebb7372e23 (diff)
Replace MiniTest::Unit to Test::Unit::Runner
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4813
Diffstat (limited to 'tool/lib/test/unit/parallel.rb')
-rw-r--r--tool/lib/test/unit/parallel.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb
index a223a9ece6..b0d8262bfc 100644
--- a/tool/lib/test/unit/parallel.rb
+++ b/tool/lib/test/unit/parallel.rb
@@ -34,10 +34,10 @@ module Test
def _run_suite(suite, type) # :nodoc:
@partial_report = []
- orig_testout = MiniTest::Unit.output
+ orig_testout = Test::Unit::Runner.output
i,o = IO.pipe
- MiniTest::Unit.output = o
+ Test::Unit::Runner.output = o
orig_stdin, orig_stdout = $stdin, $stdout
th = Thread.new do
@@ -58,7 +58,7 @@ module Test
result = [nil,nil]
end
- MiniTest::Unit.output = orig_testout
+ Test::Unit::Runner.output = orig_testout
$stdin = orig_stdin
$stdout = orig_stdout
@@ -79,7 +79,7 @@ module Test
_report "done", Marshal.dump(result)
return result
ensure
- MiniTest::Unit.output = orig_stdout
+ Test::Unit::Runner.output = orig_stdout
$stdin = orig_stdin if orig_stdin
$stdout = orig_stdout if orig_stdout
o.close if o && !o.closed?