From 7800a4b566d06ad8028a0793e50467bc233040c7 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 Nov 2013 09:51:18 +0000 Subject: [PATCH] test_tempfile.rb: suppress warnings * test/test_tempfile.rb (test_tempfile_is_unlinked_when_ruby_exits): no error should emit. * test/test_tempfile.rb (test_tempfile_encoding_ascii8bit): remove unused variable. * test/test_tempfile.rb (test_tempfile_encoding_ascii8bit2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_tempfile.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index 177107469c..61457e4138 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -203,6 +203,7 @@ File.open(path, "w").close puts Tempfile.new('foo').path EOS assert !File.exist?(filename) + assert_nil(error) end end @@ -294,7 +295,6 @@ puts Tempfile.new('foo').path end def test_tempfile_encoding_ascii8bit - default_external=Encoding.default_external t = tempfile("TEST",:encoding=>"ascii-8bit") t.write("\xE6\x9D\xBE\xE6\xB1\x9F") t.rewind @@ -302,7 +302,6 @@ puts Tempfile.new('foo').path end def test_tempfile_encoding_ascii8bit2 - default_external=Encoding.default_external t = tempfile("TEST",Dir::tmpdir,:encoding=>"ascii-8bit") t.write("\xE6\x9D\xBE\xE6\xB1\x9F") t.rewind