From 41f4317f45021460871bd11c666f438f5517904b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Feb 2016 07:48:02 +0000 Subject: test/ruby: suppress parser warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_io.rb') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 33a2ab883d..3f6825d2ec 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2185,7 +2185,7 @@ End assert_file.exist?(fname) stdin = $stdin.dup begin - assert_nothing_raised(Errno::ENOENT, enc) { + assert_nothing_raised(Errno::ENOENT, "#{bug11320}: #{enc}") { $stdin.reopen(fname, 'r') } ensure @@ -2461,7 +2461,7 @@ End def test_flush_in_finalizer1 require 'tempfile' bug3910 = '[ruby-dev:42341]' - t = Tempfile.open("bug3910") {|t| + tmp = Tempfile.open("bug3910") {|t| path = t.path t.close fds = [] @@ -2481,7 +2481,7 @@ End f.close end } - t.close! + tmp.close! end def test_flush_in_finalizer2 @@ -2959,7 +2959,6 @@ End def test_frozen_autoclose with_pipe do |r,w| - fd = r.fileno assert_equal(true, r.freeze.autoclose?) end end -- cgit v1.2.3