diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-01 15:25:12 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-01 15:25:12 +0000 |
commit | 9b0ea861ab56ec498ee3bc83d2dd5c187f99b06b (patch) | |
tree | bb5169c17fcbaee979c62be6268c38bb52ac1dea /test/ruby/test_autoload.rb | |
parent | b9ea7476773dee8dc6712e8a96ec6217ed3e0d7d (diff) |
Suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r-- | test/ruby/test_autoload.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |