diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-09-08 10:35:50 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-09-11 08:48:03 +0900 |
commit | 8ec187c091537aa5d25f19eee522aaec12bc7c26 (patch) | |
tree | f514109c18aff8539c911923e91b3024ef2e15c3 /tool/lib/test/unit | |
parent | c18e9539373a1e90e36e503a51ce5cebb7372e23 (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')
-rw-r--r-- | tool/lib/test/unit/assertions.rb | 2 | ||||
-rw-r--r-- | tool/lib/test/unit/parallel.rb | 8 | ||||
-rw-r--r-- | tool/lib/test/unit/testcase.rb | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb index 29ace55d1d..711d8a6bc3 100644 --- a/tool/lib/test/unit/assertions.rb +++ b/tool/lib/test/unit/assertions.rb @@ -596,7 +596,7 @@ module Test # Takes a block and wraps it with the runner's shared mutex. def synchronize - MiniTest::Unit.runner.synchronize do + Test::Unit::Runner.runner.synchronize do yield end end 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? diff --git a/tool/lib/test/unit/testcase.rb b/tool/lib/test/unit/testcase.rb index 61877803de..bbba87f63b 100644 --- a/tool/lib/test/unit/testcase.rb +++ b/tool/lib/test/unit/testcase.rb @@ -111,7 +111,7 @@ module Test # end # end # - # class MiniTest::Unit::TestCase + # class Test::Unit::Runner::TestCase # include MyMinitestPlugin # end @@ -230,7 +230,7 @@ module Test def io @__io__ = true - MiniTest::Unit.output + Test::Unit::Runner.output end ## |