diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-07-16 00:03:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-07-16 00:03:04 +0900 |
commit | 35660ec17d7257810fd64e1e12e92c58f4eaa2ca (patch) | |
tree | aea700eb2a1ed415ebb4e9abc7f3bcaa753f2c8f | |
parent | f5312d8e7f46121365b335511b1d42e5617e3c62 (diff) |
-rw-r--r-- | test/ruby/test_proc.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_variable.rb | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index f6b9e6d063..2cd97ca324 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1655,7 +1655,7 @@ class TestProc < Test::Unit::TestCase def test_numparam_is_not_local_variables "foo".tap do - _9 + _9 and flunk assert_equal([], binding.local_variables) assert_raise(NameError) { binding.local_variable_get(:_9) } assert_raise(NameError) { binding.local_variable_set(:_9, 1) } @@ -1674,7 +1674,7 @@ class TestProc < Test::Unit::TestCase assert_raise(NameError) { binding.local_variable_get(:_9) } assert_raise(NameError) { binding.local_variable_set(:_9, 1) } "bar".tap do - _9 + _9 and flunk assert_equal([], binding.local_variables) assert_raise(NameError) { binding.local_variable_get(:_9) } assert_raise(NameError) { binding.local_variable_set(:_9, 1) } diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 54ad953ee9..631b188677 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -875,7 +875,7 @@ class TestRubyOptions < Test::Unit::TestCase '-e', '$".clear', '-e', '$".unshift Bogus.new', '-e', '(p $"; abort) unless $".size == 1', - ], success: false) + ], bug7402, success: false) end def test_segv_setproctitle diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb index 984045e05d..cc784e7644 100644 --- a/test/ruby/test_variable.rb +++ b/test/ruby/test_variable.rb @@ -419,6 +419,7 @@ class TestVariable < Test::Unit::TestCase x end end + objs or flunk end def test_local_variables_with_kwarg @@ -440,7 +441,7 @@ class TestVariable < Test::Unit::TestCase end def test_local_variables_encoding - α = 1 + α = 1 or flunk b = binding b.eval("".encode("us-ascii")) assert_equal(%i[α b], b.local_variables) |