1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
parent 83d6487ae5
commit 151533e4bc

View file

@ -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