diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-01-14 23:56:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-01-15 23:57:43 +0900 |
commit | 6698b580ddad8cfa8c5c86df9328472820d3ee6a (patch) | |
tree | 796393dfbb03aabd5e4b2d0325ff670ceffe3d3a /tool | |
parent | 088132fb3382ec90934f48d7ac8f18a6cc165fe3 (diff) |
Clear gem paths for each test
So that rubygems can find the bundled rake.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7122
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/test/unit/parallel.rb | 2 |
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: |