aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_autoload.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-01 08:31:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-01 08:31:24 +0000
commit43284b6bf8324a762808537d5cd2c0774b662a84 (patch)
tree1bc00e36f49d5dd744264261004d72eeed14cf2e /test/ruby/test_autoload.rb
parentd9acd1965dfe9a241315c7e94c9942f6df1ed3fd (diff)
downloadruby-43284b6bf8324a762808537d5cd2c0774b662a84.tar.gz
* insns.def (defineclass), vm_insnhelper.c (vm_get_cvar_base): see
also inherited constants for classes without superclass and modules. [ruby-core:37698] [Bug #3423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r--test/ruby/test_autoload.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb
index a3a4c5df1a..2b37e44c3f 100644
--- a/test/ruby/test_autoload.rb
+++ b/test/ruby/test_autoload.rb
@@ -140,7 +140,9 @@ p Foo::Bar
t = Thread.new { AutoloadTest }
sleep 0.1
# override it
- eval %q(AutoloadTest = 1)
+ EnvUtil.suppress_warning {
+ eval %q(AutoloadTest = 1)
+ }
t.join
assert_equal(1, AutoloadTest)
ensure