ruby-changes:35970
From: nobu <ko1@a...>
Date: Mon, 20 Oct 2014 16:39:15 +0900 (JST)
Subject: [ruby-changes:35970] nobu:r48051 (trunk): test_module.rb: test with UTF-8
nobu 2014-10-20 16:38:53 +0900 (Mon, 20 Oct 2014) New Revision: 48051 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48051 Log: 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. Modified files: trunk/test/ruby/test_module.rb Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 48050) +++ test/ruby/test_module.rb (revision 48051) @@ -1829,7 +1829,10 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1829 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/