summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-14 23:56:07 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-15 23:57:43 +0900
commit6698b580ddad8cfa8c5c86df9328472820d3ee6a (patch)
tree796393dfbb03aabd5e4b2d0325ff670ceffe3d3a /tool/lib
parent088132fb3382ec90934f48d7ac8f18a6cc165fe3 (diff)
downloadruby-6698b580ddad8cfa8c5c86df9328472820d3ee6a.tar.gz
Clear gem paths for each test
So that rubygems can find the bundled rake.
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/test/unit/parallel.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb
index b3a8957f26..be0936bd76 100644
--- a/tool/lib/test/unit/parallel.rb
+++ b/tool/lib/test/unit/parallel.rb
@@ -87,6 +87,8 @@ module Test
$stdout = orig_stdout if orig_stdout
o.close if o && !o.closed?
i.close if i && !i.closed?
+
+ Gem.clear_paths if defined?(Gem)
end
def run(args = []) # :nodoc: