From 36326ceb22d114ec75675806d2c434f89ad417d1 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 27 Nov 2015 14:26:28 +0000 Subject: 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 --- test/ripper/test_parser_events.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ripper') 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 -- cgit v1.2.3