diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2024-09-15 10:05:57 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2024-09-15 10:05:57 +0900 |
| commit | bc13ec735b33771c279e67e4143fa8e98a8252fd (patch) | |
| tree | a04097a467c950c0314fba360ba804d5f4b90e6e /test/ruby | |
| parent | ddbd64400199fd408d23c85f9fb0d7f742ecf9e1 (diff) | |
Prevent warnings: assigned but unused variable
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_iseq.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index b2bccb40f8..49aa4c5abd 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -591,7 +591,7 @@ class TestISeq < Test::Unit::TestCase end def test_to_binary_with_hidden_local_variables - assert_iseq_to_binary("for foo in bar; end") + assert_iseq_to_binary("for _foo in bar; end") bin = RubyVM::InstructionSequence.compile(<<-RUBY).to_binary Object.new.instance_eval do @@ -868,7 +868,7 @@ class TestISeq < Test::Unit::TestCase def test_compile_prism_with_file Tempfile.create(%w"test_iseq .rb") do |f| - f.puts "name = 'Prism'; puts 'hello'" + f.puts "_name = 'Prism'; puts 'hello'" f.close assert_nothing_raised(TypeError) do |
