diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb index ed0a4763aa..9e86b0722c 100644 --- a/test/ruby/test_autoload.rb +++ b/test/ruby/test_autoload.rb @@ -73,6 +73,9 @@ p Foo::Bar end def test_threaded_accessing_constant + # Suppress "warning: loading in progress, circular require considered harmful" + old_verbose = $VERBOSE + $VERBOSE = false Tempfile.create(['autoload', '.rb']) {|file| file.puts 'sleep 0.5; class AutoloadTest; X = 1; end' file.close @@ -87,6 +90,8 @@ p Foo::Bar remove_autoload_constant end } + ensure + $VERBOSE = old_verbose end def test_threaded_accessing_inner_constant