aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pty.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-17 02:39:59 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-17 02:39:59 +0000
commit1492277e3c45c9cff4793a4d142edd992a47060f (patch)
treeaa110746b3f0e8f0e464bc95487e219319d925aa /test/test_pty.rb
parent6f667c6460f228684ffb0696e26c0b0a6739daea (diff)
downloadruby-1492277e3c45c9cff4793a4d142edd992a47060f.tar.gz
* 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
Diffstat (limited to 'test/test_pty.rb')
-rw-r--r--test/test_pty.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pty.rb b/test/test_pty.rb
index b6ce684509..1ec383d04b 100644
--- a/test/test_pty.rb
+++ b/test/test_pty.rb
@@ -12,7 +12,7 @@ class TestPTY < Test::Unit::TestCase
RUBY = EnvUtil.rubybin
def test_spawn_without_block
- r, w, pid = PTY.spawn(RUBY, '-e', 'puts "a"')
+ r, _, pid = PTY.spawn(RUBY, '-e', 'puts "a"')
rescue RuntimeError
skip $!
else
@@ -58,7 +58,7 @@ class TestPTY < Test::Unit::TestCase
assert_equal(2, ret.length)
assert_equal(IO, ret[0].class)
assert_equal(File, ret[1].class)
- master, slave = ret
+ _, slave = ret
assert(slave.tty?)
assert(File.chardev?(slave.path))
ensure
@@ -77,7 +77,7 @@ class TestPTY < Test::Unit::TestCase
assert_equal(2, ret.length)
assert_equal(IO, ret[0].class)
assert_equal(File, ret[1].class)
- master, slave = ret
+ _, slave = ret
assert(slave.tty?)
assert(File.chardev?(slave.path))
x