Suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b9ea747677
commit
9b0ea861ab
@ -73,6 +73,9 @@ p Foo::Bar
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_threaded_accessing_constant
|
def test_threaded_accessing_constant
|
||||||
|
# Suppress "warning: loading in progress, circular require considered harmful"
|
||||||
|
old_verbose = $VERBOSE
|
||||||
|
$VERBOSE = false
|
||||||
Tempfile.create(['autoload', '.rb']) {|file|
|
Tempfile.create(['autoload', '.rb']) {|file|
|
||||||
file.puts 'sleep 0.5; class AutoloadTest; X = 1; end'
|
file.puts 'sleep 0.5; class AutoloadTest; X = 1; end'
|
||||||
file.close
|
file.close
|
||||||
@ -87,6 +90,8 @@ p Foo::Bar
|
|||||||
remove_autoload_constant
|
remove_autoload_constant
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
ensure
|
||||||
|
$VERBOSE = old_verbose
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_threaded_accessing_inner_constant
|
def test_threaded_accessing_inner_constant
|
||||||
|
Loading…
x
Reference in New Issue
Block a user