diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-24 09:12:18 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-24 09:12:18 +0000 |
commit | fa7b849f946c37422d27ce601582a7aa24eed0e3 (patch) | |
tree | e59a70b67d1ad908212efcfa9b328914367b218d /test | |
parent | 9d14ea97d91fd61bd58472072ee7dc86253c8fd2 (diff) | |
download | ruby-fa7b849f946c37422d27ce601582a7aa24eed0e3.tar.gz |
* test/fiddle/test_function.rb: remove unused variables.
* test/fileutils/test_fileutils.rb: ditto.
* test/io/console/test_io_console.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/fiddle/test_function.rb | 2 | ||||
-rw-r--r-- | test/fileutils/test_fileutils.rb | 2 | ||||
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb index f7a49dc6fa..e617c0b61e 100644 --- a/test/fiddle/test_function.rb +++ b/test/fiddle/test_function.rb @@ -59,7 +59,7 @@ module Fiddle func = Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP) assert_nil Fiddle.last_error - str = func.call("000", "123") + func.call("000", "123") refute_nil Fiddle.last_error end diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 24d4f3c566..b733488cf8 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -1170,7 +1170,7 @@ class TestFileUtils < Test::Unit::TestCase return unless uid_1 and uid_2 touch 'tmp/a' - exception = assert_raise(Errno::EPERM) { + assert_raise(Errno::EPERM) { chown uid_1, nil, 'tmp/a' chown uid_2, nil, 'tmp/a' } diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index a9de376a2b..96e340ca67 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -222,7 +222,7 @@ class TestIO_Console < Test::Unit::TestCase end else def test_sync - r, w, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", "p IO.console.class") + r, _, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", "p IO.console.class") rescue RuntimeError skip $! else |