mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/envutil.rb (default_warning): New method.
* test/ruby/test_autoload.rb: Use EnvUtil.default_warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
046831094b
commit
fe38158f9b
3 changed files with 16 additions and 2 deletions
|
@ -74,7 +74,7 @@ p Foo::Bar
|
|||
|
||||
def test_threaded_accessing_constant
|
||||
# Suppress "warning: loading in progress, circular require considered harmful"
|
||||
EnvUtil.suppress_warning {
|
||||
EnvUtil.default_warning {
|
||||
Tempfile.create(['autoload', '.rb']) {|file|
|
||||
file.puts 'sleep 0.5; class AutoloadTest; X = 1; end'
|
||||
file.close
|
||||
|
@ -94,7 +94,7 @@ p Foo::Bar
|
|||
|
||||
def test_threaded_accessing_inner_constant
|
||||
# Suppress "warning: loading in progress, circular require considered harmful"
|
||||
EnvUtil.suppress_warning {
|
||||
EnvUtil.default_warning {
|
||||
Tempfile.create(['autoload', '.rb']) {|file|
|
||||
file.puts 'class AutoloadTest; sleep 0.5; X = 1; end'
|
||||
file.close
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue