summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:48:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:48:02 +0000
commit41f4317f45021460871bd11c666f438f5517904b (patch)
treec7ac02b58faafe7f92946fe8f14c18480280624f /test/ruby/test_io.rb
parent311b7154839b91c87ee40908ac6d3f5c330d7b11 (diff)
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.rb7
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