summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-01 12:09:08 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-01 12:09:08 +0000
commit49d68ba10db31713a60d0049d077e5ddffff4268 (patch)
tree20c3eddea9b6aadaa173855b8da56d865953e15b /test/ruby
parent5cd71131b849db00f94c87dc6fcf403731338161 (diff)
Suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_autoload.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb
index 1931df45c5..ed0a4763aa 100644
--- a/test/ruby/test_autoload.rb
+++ b/test/ruby/test_autoload.rb
@@ -90,6 +90,9 @@ p Foo::Bar
end
def test_threaded_accessing_inner_constant
+ # Suppress "warning: loading in progress, circular require considered harmful"
+ old_verbose = $VERBOSE
+ $VERBOSE = false
Tempfile.create(['autoload', '.rb']) {|file|
file.puts 'class AutoloadTest; sleep 0.5; X = 1; end'
file.close
@@ -104,6 +107,8 @@ p Foo::Bar
remove_autoload_constant
end
}
+ ensure
+ $VERBOSE = old_verbose
end
def test_nameerror_when_autoload_did_not_define_the_constant