mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
d249be6233
commit
36326ceb22
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue