support multi-run for test/ruby/test_autoload.rb

Another test defines Object::A, but it will fail 2nd test.
This commit is contained in:
Koichi Sasada 2020-01-28 17:53:20 +09:00
Родитель 83d6487ae5
Коммит 151533e4bc
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -66,6 +66,8 @@ p Foo::Bar
end
def test_autoload_with_unqualified_file_name # [ruby-core:69206]
Object.send(:remove_const, :A) if Object.const_defined?(:A)
lp = $LOAD_PATH.dup
lf = $LOADED_FEATURES.dup