summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-07 20:27:53 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-11 08:48:03 +0900
commite4b5ac9b9a6c701735e1e1787d2e2ddf4a970c8d (patch)
treecf4144f418992c156c5333db985dfd598c2a0516
parentdf86d78a26edaafbaf317e86db946ab09700a920 (diff)
downloadruby-e4b5ac9b9a6c701735e1e1787d2e2ddf4a970c8d.tar.gz
Use Test::Unit namespace
-rw-r--r--tool/lib/profile_test_all.rb2
-rw-r--r--tool/lib/test/unit/parallel.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/tool/lib/profile_test_all.rb b/tool/lib/profile_test_all.rb
index 2c360d76dd..fb434e314d 100644
--- a/tool/lib/profile_test_all.rb
+++ b/tool/lib/profile_test_all.rb
@@ -20,7 +20,7 @@
require 'objspace'
-class MiniTest::Unit::TestCase
+class Test::Unit::TestCase
alias orig_run run
file = ENV['RUBY_TEST_ALL_PROFILE']
diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb
index 0807b3916b..a223a9ece6 100644
--- a/tool/lib/test/unit/parallel.rb
+++ b/tool/lib/test/unit/parallel.rb
@@ -113,7 +113,7 @@ module Test
_report "okay"
@options = @opts.dup
- suites = MiniTest::Unit::TestCase.test_suites
+ suites = Test::Unit::TestCase.test_suites
begin
require File.realpath($1)
@@ -122,7 +122,7 @@ module Test
_report "ready"
next
end
- _run_suites MiniTest::Unit::TestCase.test_suites-suites, $2.to_sym
+ _run_suites Test::Unit::TestCase.test_suites-suites, $2.to_sym
if @need_exit
_report "bye"
@@ -193,7 +193,7 @@ end
if $0 == __FILE__
module Test
module Unit
- class TestCase < MiniTest::Unit::TestCase # :nodoc: all
+ class TestCase # :nodoc: all
undef on_parallel_worker?
def on_parallel_worker?
true