diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:48:02 +0000 |
commit | 05be244e60b5aa8edc1d4a0a4d315dd815da2031 (patch) | |
tree | c7ac02b58faafe7f92946fe8f14c18480280624f /test/ruby/test_io.rb | |
parent | 4e316341843fe57dddf267fee753ee430ff39508 (diff) | |
download | ruby-05be244e60b5aa8edc1d4a0a4d315dd815da2031.tar.gz |
test/ruby: suppress parser warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 7 |
1 files changed, 3 insertions, 4 deletions
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 |