ruby-changes:59828
From: Koichi <ko1@a...>
Date: Tue, 28 Jan 2020 15:24:30 +0900 (JST)
Subject: [ruby-changes:59828] b17bab7472 (master): support multi-run for ruby/test_autoload.rb
https://git.ruby-lang.org/ruby.git/commit/?id=b17bab7472 From b17bab7472a0491071c7da9e8b41305d3687a341 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 28 Jan 2020 11:58:09 +0900 Subject: support multi-run for ruby/test_autoload.rb It requires more cleanup. diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb index 2e53c92..c23e0cf 100644 --- a/test/ruby/test_autoload.rb +++ b/test/ruby/test_autoload.rb @@ -445,5 +445,6 @@ p Foo::Bar https://github.com/ruby/ruby/blob/trunk/test/ruby/test_autoload.rb#L445 def remove_autoload_constant $".replace($" - @autoload_paths) ::Object.class_eval {remove_const(:AutoloadTest)} + TestAutoload.class_eval {remove_const(:AutoloadTest)} if defined? TestAutoload::AutoloadTest end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/