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:
parent
83d6487ae5
commit
151533e4bc
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ p Foo::Bar
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_autoload_with_unqualified_file_name # [ruby-core:69206]
|
def test_autoload_with_unqualified_file_name # [ruby-core:69206]
|
||||||
|
Object.send(:remove_const, :A) if Object.const_defined?(:A)
|
||||||
|
|
||||||
lp = $LOAD_PATH.dup
|
lp = $LOAD_PATH.dup
|
||||||
lf = $LOADED_FEATURES.dup
|
lf = $LOADED_FEATURES.dup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue