diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-19 14:49:19 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-19 14:49:19 +0000 |
commit | 181815422b02bccc24a98dd2637a6e1da8d5a43e (patch) | |
tree | f4ed45aca31015fe22c4a217411080e7250f8d83 /test/ruby/test_m17n.rb | |
parent | aab70ee3d3d9f16f7299d02536ea751ee58abf62 (diff) | |
download | ruby-181815422b02bccc24a98dd2637a6e1da8d5a43e.tar.gz |
suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r-- | test/ruby/test_m17n.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index dfcaa94d15..1d76c7dd24 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -252,7 +252,7 @@ class TestM17N < Test::Unit::TestCase Encoding.default_external = Encoding::UTF_8 o = Object.new [Encoding::UTF_16BE, Encoding::UTF_16LE, Encoding::UTF_32BE, Encoding::UTF_32LE].each do |e| - o.instance_eval "def inspect;'abc'.encode('#{e}');end" + o.instance_eval "undef inspect;def inspect;'abc'.encode('#{e}');end" assert_raise(Encoding::CompatibilityError) { [o].inspect } end ensure |