Skip to content

Suppress warnings for variables #13896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/ruby/test_proc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ def test_local_variable_set

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) }
Expand All @@ -1674,7 +1674,7 @@ def test_numparam_is_not_local_variables
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) }
Expand Down
2 changes: 1 addition & 1 deletion test/ruby/test_rubyoptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ def test_segv_loaded_features
'-e', '$".clear',
'-e', '$".unshift Bogus.new',
'-e', '(p $"; abort) unless $".size == 1',
], success: false)
], bug7402, success: false)
end

def test_segv_setproctitle
Expand Down
3 changes: 2 additions & 1 deletion test/ruby/test_variable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ def test_exivar_resize_with_compaction_stress
x
end
end
objs or flunk
end

def test_local_variables_with_kwarg
Expand All @@ -440,7 +441,7 @@ def test_many_instance_variables
end

def test_local_variables_encoding
α = 1
α = 1 or flunk
b = binding
b.eval("".encode("us-ascii"))
assert_equal(%i[α b], b.local_variables)
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy