diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-21 09:51:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-21 09:51:18 +0000 |
commit | 7800a4b566d06ad8028a0793e50467bc233040c7 (patch) | |
tree | ff3f90c92b1572a9ded6302436e49dd868c09ade /test | |
parent | 4305eb8e6c0e8ad0db9db29b38510d5815ccaabf (diff) | |
download | ruby-7800a4b566d06ad8028a0793e50467bc233040c7.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/test_tempfile.rb | 3 |
1 files changed, 1 insertions, 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 |