diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-27 14:26:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-27 14:26:28 +0000 |
commit | 36326ceb22d114ec75675806d2c434f89ad417d1 (patch) | |
tree | fa8f28d2cf069961b4cfe8ed51c43eb3d0aa0051 /test | |
parent | d249be623375e2725e1e3a979d7d47e45d356265 (diff) | |
download | ruby-36326ceb22d114ec75675806d2c434f89ad417d1.tar.gz |
test_parser_events.rb: suppress a warning
* test/ripper/test_parser_events.rb (test_warn_cr_in_middle):
remove unused variable to suppress assigned-but-unused-variable
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ripper/test_parser_events.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 2b9f97a481..55485b68d0 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -1323,7 +1323,7 @@ class TestRipper::ParserEvents < Test::Unit::TestCase def test_warn_cr_in_middle fmt = nil - assert_warn("") {fmt, *args = warn("\r;")} + assert_warn("") {fmt, = warn("\r;")} assert_match(/encountered/, fmt) end end if ripper_test |