* test/test_pty.rb: use underscore variables. because ignored unseued variables.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-02-17 02:39:59 +00:00
Родитель 6f667c6460
Коммит 1492277e3c
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Mon Feb 17 11:28:40 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/test_pty.rb: ignore warnings to unused variables.
Mon Feb 17 11:27:36 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> Mon Feb 17 11:27:36 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/test_find.rb: remove unused variables. * test/test_find.rb: remove unused variables.

Просмотреть файл

@ -12,7 +12,7 @@ class TestPTY < Test::Unit::TestCase
RUBY = EnvUtil.rubybin RUBY = EnvUtil.rubybin
def test_spawn_without_block def test_spawn_without_block
r, w, pid = PTY.spawn(RUBY, '-e', 'puts "a"') r, _, pid = PTY.spawn(RUBY, '-e', 'puts "a"')
rescue RuntimeError rescue RuntimeError
skip $! skip $!
else else
@ -58,7 +58,7 @@ class TestPTY < Test::Unit::TestCase
assert_equal(2, ret.length) assert_equal(2, ret.length)
assert_equal(IO, ret[0].class) assert_equal(IO, ret[0].class)
assert_equal(File, ret[1].class) assert_equal(File, ret[1].class)
master, slave = ret _, slave = ret
assert(slave.tty?) assert(slave.tty?)
assert(File.chardev?(slave.path)) assert(File.chardev?(slave.path))
ensure ensure
@ -77,7 +77,7 @@ class TestPTY < Test::Unit::TestCase
assert_equal(2, ret.length) assert_equal(2, ret.length)
assert_equal(IO, ret[0].class) assert_equal(IO, ret[0].class)
assert_equal(File, ret[1].class) assert_equal(File, ret[1].class)
master, slave = ret _, slave = ret
assert(slave.tty?) assert(slave.tty?)
assert(File.chardev?(slave.path)) assert(File.chardev?(slave.path))
x x