From 3136025cd14f6750f5e6781612771140452ea0ed Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 20 Oct 2014 07:38:53 +0000 Subject: test_module.rb: test with UTF-8 * test/ruby/test_module.rb (test_uninitialized_instance_variable): test with UTF-8 default external encoding for non-locale environments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 5a0d819fb7..324d45fb7a 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -1829,7 +1829,10 @@ class TestModule < Test::Unit::TestCase name = "@\u{5909 6570}" assert_warning(/instance variable #{name} not initialized/) do - assert_nil(a.instance_eval(name)) + val = EnvUtil.with_default_external(Encoding::UTF_8) { + a.instance_eval(name) + } + assert_nil(val) end end -- cgit v1.2.3