diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 07:56:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 07:56:13 +0000 |
commit | 519b97e2dc7feff32ea5008fbd3d8f5c24bc5f9d (patch) | |
tree | 0e8110d079ecbe58c564a9ccace85295a90aef93 /test/ruby/test_module.rb | |
parent | 91486538f447fc6240defcc1b262b6b9bb95d5c2 (diff) | |
download | ruby-519b97e2dc7feff32ea5008fbd3d8f5c24bc5f9d.tar.gz |
encoding for inspect
* test/ruby/test_{exception,module,object}.rb: inspect result
depend on the default external encoding. [Feature #10881]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r-- | test/ruby/test_module.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index ed052ff711..358e47af64 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -686,7 +686,7 @@ class TestModule < Test::Unit::TestCase assert_raise(NameError) { c1.const_set("X\u{3042}".encode("utf-32be"), :foo) } assert_raise(NameError) { c1.const_set("X\u{3042}".encode("utf-32le"), :foo) } cx = EnvUtil.labeled_class("X\u{3042}") - EnvUtil.with_default_internal(Encoding::UTF_8) { + EnvUtil.with_default_external(Encoding::UTF_8) { assert_raise_with_message(TypeError, /X\u{3042}/) { c1.const_set(cx, :foo) } } end |